RemoteSshUtil
public class RemoteSshUtil
extends Object
java.lang.Object |
↳ | com.android.tradefed.device.cloud.RemoteSshUtil |
在远程实例上执行ssh命令的实用程序。
概要
公开方法 |
---|
static CommandResult | remoteSshCommandExec (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeoutMs, OutputStream stdout, OutputStream stderr, String... command) 使用ssh在远程实例上执行命令。 |
static CommandResult | remoteSshCommandExec (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeoutMs, String... command) 使用ssh在远程实例上执行命令。 |
公共建设者
RemoteSshUtil
public RemoteSshUtil ()
公开方法
remoteSshCommandExec
public static CommandResult remoteSshCommandExec (GceAvdInfo remoteInstance,
TestDeviceOptions options,
IRunUtil runUtil,
long timeoutMs,
OutputStream stdout,
OutputStream stderr,
String... command)
使用ssh在远程实例上执行命令。
remoteSshCommandExec
public static CommandResult remoteSshCommandExec (GceAvdInfo remoteInstance,
TestDeviceOptions options,
IRunUtil runUtil,
long timeoutMs,
String... command)
使用ssh在远程实例上执行命令。
参量 |
---|
remoteInstance | GceAvdInfo :描述设备的GceAvdInfo 。 |
options | TestDeviceOptions :一个TestDeviceOptions 描述要用于GCE设备的设备选项。 |
runUtil | IRunUtil :执行命令的IRunUtil 。 |
timeoutMs | long :以毫秒为单位的提取完成时间 |
command | String :要执行的命令。 |