RemoteSshUtil

public class RemoteSshUtil
extends Object

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


Utilità per eseguire comandi ssh su istanze remote.

Riepilogo

Costruttori pubblici

RemoteSshUtil ()

Metodi pubblici

static CommandResult remoteSshCommandExec ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeoutMs, OutputStream stdout, OutputStream stderr, String... command)

Esegui un comando sull'istanza remota utilizzando ssh.

static CommandResult remoteSshCommandExec ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeoutMs, String... command)

Esegui un comando sull'istanza remota utilizzando ssh.

Costruttori pubblici

RemoteSshUtil

public RemoteSshUtil ()

Metodi pubblici

remoteSshCommandExec

public static CommandResult remoteSshCommandExec (GceAvdInfo remoteInstance, 
                TestDeviceOptions options, 
                IRunUtil runUtil, 
                long timeoutMs, 
                OutputStream stdout, 
                OutputStream stderr, 
                String... command)

Esegui un comando sull'istanza remota utilizzando ssh.

Parametri
remoteInstance GceAvdInfo : il GceAvdInfo che descrive il dispositivo.

options TestDeviceOptions : un TestDeviceOptions che descrive le opzioni del dispositivo da utilizzare per il dispositivo GCE.

runUtil IRunUtil : un IRunUtil per eseguire comandi.

timeoutMs long : in millisecondi per il completamento del recupero

stdout OutputStream : un ERROR(/OutputStream) in cui verrà registrato lo stdout.

stderr OutputStream : un ERROR(/OutputStream) in cui verrà registrato lo stderr.

command String : il comando da eseguire.

ritorna
CommandResult Un CommandResult contenente lo stato e i log.

remoteSshCommandExec

public static CommandResult remoteSshCommandExec (GceAvdInfo remoteInstance, 
                TestDeviceOptions options, 
                IRunUtil runUtil, 
                long timeoutMs, 
                String... command)

Esegui un comando sull'istanza remota utilizzando ssh.

Parametri
remoteInstance GceAvdInfo : il GceAvdInfo che descrive il dispositivo.

options TestDeviceOptions : un TestDeviceOptions che descrive le opzioni del dispositivo da utilizzare per il dispositivo GCE.

runUtil IRunUtil : un IRunUtil per eseguire comandi.

timeoutMs long : in millisecondi per il completamento del recupero

command String : il comando da eseguire.

ritorna
CommandResult Un CommandResult contenente lo stato e i log.