RemoteSshUtil

public class RemoteSshUtil
extends Object

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


Narzędzie do wykonywania poleceń ssh w przypadku instancji zdalnych.

Podsumowanie

Konstruktory publiczne

RemoteSshUtil()

Metody publiczne

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

Wykonaj polecenie w zdalnej instancji za pomocą ssh.

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

Wykonaj polecenie w 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 w zdalnej instancji za pomocą ssh.

Parametry
remoteInstance GceAvdInfo: GceAvdInfo opisujące urządzenie.

options TestDeviceOptions: TestDeviceOptions opisujący opcje urządzenia, które mają być używane w przypadku urządzenia GCE.

runUtil IRunUtil: IRunUtil do wykonywania poleceń.

timeoutMs long: czas w milisekundach potrzebny na pobranie

stdout OutputStream: ERROR(/OutputStream), w którym dane wyjściowe zostaną zapisane.

stderr OutputStream: ERROR(/OutputStream), w którym będą rejestrowane błędy stderr.

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 w zdalnej instancji za pomocą ssh.

Parametry
remoteInstance GceAvdInfo: GceAvdInfo opisujące urządzenie.

options TestDeviceOptions: TestDeviceOptions opisujący opcje urządzenia, które mają być używane w przypadku urządzenia GCE.

runUtil IRunUtil: IRunUtil do wykonywania poleceń.

timeoutMs long: czas w milisekundach potrzebny na pobranie

command String: polecenie do wykonania.

Zwroty
CommandResult CommandResult zawierający stan i dzienniki.