Từ xaSshUtil
public class RemoteSshUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.cloud.RemoteSshUtil |
Tiện ích để thực thi các lệnh ssh trên các phiên bản từ xa.
Bản tóm tắt
nhà thầu công cộng | |
---|---|
RemoteSshUtil () |
Phương thức 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 công cộng
Từ xaSshUtil
public RemoteSshUtil ()
Phương thức 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 : một TestDeviceOptions mô tả các tùy chọn thiết bị sẽ được sử dụng cho thiết bị GCE. |
runUtil | IRunUtil : một 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 : ERROR(/OutputStream) nơi thiết bị xuất chuẩn sẽ được ghi lại. |
stderr | OutputStream : Một ERROR(/OutputStream) nơi thiết bị xuất chuẩn 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 : một TestDeviceOptions mô tả các tùy chọn thiết bị sẽ được sử dụng cho thiết bị GCE. |
runUtil | IRunUtil : một 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ý. |