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 Konstrukteure | |
---|---|
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 Remoteinstanz aus. |
static CommandResult | remoteSshCommandExec ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeoutMs, String... command) Führen Sie mit ssh einen Befehl auf der Remoteinstanz aus. |
Öffentliche Konstrukteure
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 Remoteinstanz 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 : ein IRunUtil zum Ausführen von Befehlen. |
timeoutMs | long : in Millisekunden für den Abschluss des Abrufs |
stdout | OutputStream : Ein ERROR(/OutputStream) wo die Standardausgabe protokolliert wird. |
stderr | OutputStream : Ein ERROR(/OutputStream) wo der stderr protokolliert wird. |
command | String : Der auszuführende Befehl. |
Kehrt zurück | |
---|---|
CommandResult | Ein CommandResult , das den Status und die 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 Remoteinstanz 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 : ein IRunUtil zum Ausführen von Befehlen. |
timeoutMs | long : in Millisekunden für den Abschluss des Abrufs |
command | String : Der auszuführende Befehl. |
Kehrt zurück | |
---|---|
CommandResult | Ein CommandResult , das den Status und die Protokolle enthält. |