RemoteSshUtil
public class RemoteSshUtil
extends Object
java.lang.Obiekt | |
↳ | com.android.tradefed.device.cloud.RemoteSshUtil |
Narzędzie do wykonywania poleceń ssh w zdalnych instancjach.
Streszczenie
Konstruktory publiczne | |
---|---|
RemoteSshUtil () |
Metody publiczne | |
---|---|
static CommandResult | remoteSshCommandExec ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeoutMs, OutputStream stdout, OutputStream stderr, String... command) Wykonaj polecenie na zdalnej instancji za pomocą ssh. |
static CommandResult | remoteSshCommandExec ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeoutMs, String... command) Wykonaj polecenie na zdalnej instancji za pomocą ssh. |
Konstruktory publiczne
RemoteSshUtil
public RemoteSshUtil ()
Metody publiczne
RemoteSshCommandExec
public static CommandResult remoteSshCommandExec (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeoutMs, OutputStream stdout, OutputStream stderr, String... command)
Wykonaj polecenie na zdalnej instancji za pomocą ssh.
Parametry | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo opisujące urządzenie. |
options | TestDeviceOptions : a TestDeviceOptions opisujący opcje urządzenia, które mają być używane dla urządzenia GCE. |
runUtil | IRunUtil : IRunUtil do wykonywania poleceń. |
timeoutMs | long : w milisekundach, aby zakończyć pobieranie |
stdout | OutputStream : ERROR(/OutputStream) w którym zostanie zarejestrowane standardowe wyjście. |
stderr | OutputStream : ERROR(/OutputStream) w którym stderr zostanie zarejestrowany. |
command | String : Polecenie do wykonania. |
Zwroty | |
---|---|
CommandResult | CommandResult zawierający stan i dzienniki. |
RemoteSshCommandExec
public static CommandResult remoteSshCommandExec (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeoutMs, String... command)
Wykonaj polecenie na zdalnej instancji za pomocą ssh.
Parametry | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo opisujące urządzenie. |
options | TestDeviceOptions : a TestDeviceOptions opisujący opcje urządzenia, które mają być używane dla urządzenia GCE. |
runUtil | IRunUtil : IRunUtil do wykonywania poleceń. |
timeoutMs | long : w milisekundach, aby zakończyć pobieranie |
command | String : Polecenie do wykonania. |
Zwroty | |
---|---|
CommandResult | CommandResult zawierający stan i dzienniki. |