RemoteSshUtil

public class RemoteSshUtil
extends Object

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


在遠程實例上執行 ssh 命令的實用程序。

概括

公共構造函數

RemoteSshUtil ()

公共方法

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 在遠程實例上執行命令。

參數
remoteInstance GceAvdInfo :描述設備的GceAvdInfo

options TestDeviceOptions :一個TestDeviceOptions描述用於 GCE 設備的設備選項。

runUtil IRunUtil :用於執行命令的IRunUtil

timeoutMs long :以毫秒為單位完成提取

stdout OutputStream :將記錄 stdout 的ERROR(/OutputStream)

stderr OutputStream :將記錄 stderr 的ERROR(/OutputStream)

command String :要執行的命令。

退貨
CommandResult包含狀態和日誌的CommandResult

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 :要執行的命令。

退貨
CommandResult包含狀態和日誌的CommandResult