RemoteSshUtilRemoteSshUtil
public class RemoteSshUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.cloud.RemoteSshUtil |
Utilitaire pour 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
RemoteSshUtilRemoteSshUtil
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 : Le GceAvdInfo qui décrit l'appareil. |
options | TestDeviceOptions : un TestDeviceOptions décrivant les options de périphérique à utiliser pour le périphérique GCE. |
runUtil | IRunUtil : un IRunUtil pour exécuter des commandes. |
timeoutMs | long : en millisecondes pour que la récupération se termine |
stdout | OutputStream : Une ERROR(/OutputStream) où la sortie standard sera enregistrée. |
stderr | OutputStream : Une ERROR(/OutputStream) où le stderr sera enregistré. |
command | String : La commande à exécuter. |
Retour | |
---|---|
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 : Le GceAvdInfo qui décrit l'appareil. |
options | TestDeviceOptions : un TestDeviceOptions décrivant les options de périphérique à utiliser pour le périphérique GCE. |
runUtil | IRunUtil : un IRunUtil pour exécuter des commandes. |
timeoutMs | long : en millisecondes pour que la récupération se termine |
command | String : La commande à exécuter. |
Retour | |
---|---|
CommandResult | Un CommandResult contenant l'état et les journaux. |