RemoteSshUtil

public class RemoteSshUtil
extends Object

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


Utilitaire permettant d'exécuter des commandes SSH sur des instances distantes.

Résumé

Constructeurs publics

RemoteSshUtil()

Méthodes publiques

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

Exécutez une commande sur l'instance distante à l'aide de SSH.

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

Exécutez une commande sur l'instance distante à l'aide de SSH.

Constructeurs publics

RemoteSshUtil

public RemoteSshUtil ()

Méthodes publiques

remoteSshCommandExec

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

Exécutez une commande sur l'instance distante à l'aide de SSH.

Paramètres
remoteInstance GceAvdInfo: GceAvdInfo qui décrit l'appareil.

options TestDeviceOptions: TestDeviceOptions décrivant les options d'appareil à utiliser pour l'appareil GCE.

runUtil IRunUtil: IRunUtil permettant d'exécuter des commandes.

timeoutMs long: en millisecondes pour l'extraction

stdout OutputStream: ERROR(/OutputStream) dans lequel la sortie standard sera enregistrée.

stderr OutputStream: ERROR(/OutputStream) dans lequel le stderr sera consigné.

command String: commande à exécuter.

Renvoie
CommandResult Un CommandResult contenant l'état et les journaux.

remoteSshCommandExec

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

Exécutez une commande sur l'instance distante à l'aide de SSH.

Paramètres
remoteInstance GceAvdInfo: GceAvdInfo qui décrit l'appareil.

options TestDeviceOptions: TestDeviceOptions décrivant les options d'appareil à utiliser pour l'appareil GCE.

runUtil IRunUtil: IRunUtil permettant d'exécuter des commandes.

timeoutMs long: en millisecondes pour l'extraction

command String: commande à exécuter.

Renvoie
CommandResult Un CommandResult contenant l'état et les journaux.