DeviceConcurrentUtil.ShellCommandCallable
public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object
java.lang.Objeto | |
↳ | com.android.tradefed.util.DeviceConcurrentUtil.ShellCommandCallable<V> |
Un ERROR(/Callable)
que incluye los detalles de la ejecución del comando de shell en un ITestDevice
.
Debe implementar processOutput(String)
para procesar la salida del comando y determinar el retorno del Callable
Resumen
Constructores públicos | |
---|---|
ShellCommandCallable () | |
ShellCommandCallable ( ITestDevice device, String command, long timeout) |
Métodos públicos | |
---|---|
V | call () |
abstract V | processOutput (String output) |
ShellCommandCallable <V> | setCommand (String command) |
ShellCommandCallable <V> | setDevice ( ITestDevice device) |
ShellCommandCallable <V> | setTimeout (long timeout) |
Constructores públicos
Comando ShellInvocable
public ShellCommandCallable ()
Comando ShellInvocable
public ShellCommandCallable (ITestDevice device, String command, long timeout)
Parámetros | |
---|---|
device | ITestDevice |
command | String |
timeout | long |
Métodos públicos
llamar
public V call ()
Devoluciones | |
---|---|
V |
procesoSalida
public abstract V processOutput (String output)
Parámetros | |
---|---|
output | String |
Devoluciones | |
---|---|
V |
establecer comando
public ShellCommandCallable<V> setCommand (String command)
Parámetros | |
---|---|
command | String |
Devoluciones | |
---|---|
ShellCommandCallable <V> |
establecer dispositivo
public ShellCommandCallable<V> setDevice (ITestDevice device)
Parámetros | |
---|---|
device | ITestDevice |
Devoluciones | |
---|---|
ShellCommandCallable <V> |
establecer tiempo de espera
public ShellCommandCallable<V> setTimeout (long timeout)
Parámetros | |
---|---|
timeout | long |
Devoluciones | |
---|---|
ShellCommandCallable <V> |