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 : GCE デバイスに使用されるデバイス オプションを記述するTestDeviceOptions

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 : GCE デバイスに使用されるデバイス オプションを記述するTestDeviceOptions

runUtil IRunUtil : コマンドを実行するためのIRunUtil

timeoutMs long : フェッチが完了するまでのミリ秒

command String : 実行するコマンド。

戻り値
CommandResultステータスとログを含むCommandResult