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 Konstruktoren

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 Konstruktoren

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 beschreiben.

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

runUtil IRunUtil: IRunUtil zum Ausführen von Befehlen

timeoutMs long: in Millisekunden, bis der Abruf abgeschlossen ist

stdout OutputStream: Ein ERROR(/OutputStream), in dem der Standardausgabe-Stream protokolliert wird.

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

command String: Der auszuführende Befehl.

Returns
CommandResult Ein CommandResult mit Status und Protokollen.

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 beschreiben.

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

runUtil IRunUtil: IRunUtil zum Ausführen von Befehlen

timeoutMs long: in Millisekunden, bis der Abruf abgeschlossen ist

command String: Der auszuführende Befehl.

Returns
CommandResult Ein CommandResult mit Status und Protokollen.