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