RemoteSshUtil

public class RemoteSshUtil
extends Object

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


Dienstprogramm zum Ausführen von SSH-Befehlen auf Remote-Instanzen.

Zusammenfassung

Öffentliche Bauträger

RemoteSshUtil ()

Öffentliche Methoden

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

Führen Sie mit ssh einen Befehl auf der Remote-Instanz aus.

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

Führen Sie mit ssh einen Befehl auf der Remote-Instanz aus.

Öffentliche Bauträger

RemoteSshUtil

public RemoteSshUtil ()

Öffentliche Methoden

remoteSshCommandExec

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

Führen Sie mit ssh einen Befehl auf der Remote-Instanz aus.

Parameter
remoteInstance GceAvdInfo : Die GceAvdInfo , die das Gerät beschreibt.

options TestDeviceOptions : ein TestDeviceOptions der die Geräteoptionen beschreibt, die für das GCE-Gerät verwendet werden sollen.

runUtil IRunUtil : ein IRunUtil zum Ausführen von Befehlen.

timeoutMs long : In Millisekunden, bis der Abruf abgeschlossen ist

stdout OutputStream : Ein ERROR(/OutputStream) , bei dem die Standardausgabe protokolliert wird.

stderr OutputStream : Ein ERROR(/OutputStream) , bei dem der stderr protokolliert wird.

command String : Der auszuführende Befehl.

Kehrt zurück
CommandResult Ein CommandResult , das den Status und Protokolle enthält.

remoteSshCommandExec

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

Führen Sie mit ssh einen Befehl auf der Remote-Instanz aus.

Parameter
remoteInstance GceAvdInfo : Die GceAvdInfo , die das Gerät beschreibt.

options TestDeviceOptions : ein TestDeviceOptions der die Geräteoptionen beschreibt, die für das GCE-Gerät verwendet werden sollen.

runUtil IRunUtil : ein IRunUtil zum Ausführen von Befehlen.

timeoutMs long : In Millisekunden, bis der Abruf abgeschlossen ist

command String : Der auszuführende Befehl.

Kehrt zurück
CommandResult Ein CommandResult , das den Status und Protokolle enthält.