RemoteSshUtil

public class RemoteSshUtil
extends Object

java.lang.Object
com.android.tradefed.device.cloud.RemoteSshUtil


Tiện ích để thực thi lệnh ssh trên các phiên bản từ xa.

Bản tóm tắt

Nhà thầu xây dựng công cộng

RemoteSshUtil ()

Phương pháp công khai

static CommandResult remoteSshCommandExec ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeoutMs, OutputStream stdout, OutputStream stderr, String... command)

Thực thi lệnh trên phiên bản từ xa bằng ssh.

static CommandResult remoteSshCommandExec ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeoutMs, String... command)

Thực thi lệnh trên phiên bản từ xa bằng ssh.

Nhà thầu xây dựng công cộng

RemoteSshUtil

public RemoteSshUtil ()

Phương pháp công khai

remoteSshCommandExec

public static CommandResult remoteSshCommandExec (GceAvdInfo remoteInstance, 
                TestDeviceOptions options, 
                IRunUtil runUtil, 
                long timeoutMs, 
                OutputStream stdout, 
                OutputStream stderr, 
                String... command)

Thực thi lệnh trên phiên bản từ xa bằng ssh.

Thông số
remoteInstance GceAvdInfo : GceAvdInfo mô tả thiết bị.

options TestDeviceOptions : TestDeviceOptions mô tả các tùy chọn thiết bị sẽ được sử dụng cho thiết bị GCE.

runUtil IRunUtil : IRunUtil để thực thi lệnh.

timeoutMs long : tính bằng mili giây để quá trình tìm nạp hoàn tất

stdout OutputStream : Một ERROR(/OutputStream) trong đó thiết bị xuất chuẩn sẽ được ghi lại.

stderr OutputStream : Một ERROR(/OutputStream) trong đó stderr sẽ được ghi lại.

command String : Lệnh sẽ được thực thi.

Trả lại
CommandResult Một CommandResult chứa trạng thái và nhật ký.

remoteSshCommandExec

public static CommandResult remoteSshCommandExec (GceAvdInfo remoteInstance, 
                TestDeviceOptions options, 
                IRunUtil runUtil, 
                long timeoutMs, 
                String... command)

Thực thi lệnh trên phiên bản từ xa bằng ssh.

Thông số
remoteInstance GceAvdInfo : GceAvdInfo mô tả thiết bị.

options TestDeviceOptions : TestDeviceOptions mô tả các tùy chọn thiết bị sẽ được sử dụng cho thiết bị GCE.

runUtil IRunUtil : IRunUtil để thực thi lệnh.

timeoutMs long : tính bằng mili giây để quá trình tìm nạp hoàn tất

command String : Lệnh sẽ được thực thi.

Trả lại
CommandResult Một CommandResult chứa trạng thái và nhật ký.