RemoteSshUtil

public class RemoteSshUtil
extends Object

java.lang.オブジェクト
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 ()

パブリックメソッド

リモートSshコマンド実行

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 : 標準出力が記録されるERROR(/OutputStream)

stderr OutputStream : 標準エラー出力が記録されるERROR(/OutputStream)

command String : 実行されるコマンド。

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

リモートSshコマンド実行

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