DeviceConcurrentUtil.ShellCommandCallable

public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object

Objeto java.lang.
   ↳ com.android.tradefed.util.DeviceConcurrentUtil.ShellCommandCallable<V>


Un ERROR(/Callable) que une los detalles de la ejecución del comando de shell en un elemento ITestDevice.

Se debe implementar processOutput(String) para procesar el comando de salida y determinar el resultado 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

ShellCommandCallable

public ShellCommandCallable ()

ShellCommandCallable

public ShellCommandCallable (ITestDevice device, 
                String command, 
                long timeout)

Parámetros
device ITestDevice

command String

timeout long

Métodos públicos

llamar

public V call ()

Muestra
V

processOutput

public abstract V processOutput (String output)

Parámetros
output String

Muestra
V

Comandoset

public ShellCommandCallable<V> setCommand (String command)

Parámetros
command String

Muestra
ShellCommandCallable<V>

SetDevice

public ShellCommandCallable<V> setDevice (ITestDevice device)

Parámetros
device ITestDevice

Muestra
ShellCommandCallable<V>

setTimeout

public ShellCommandCallable<V> setTimeout (long timeout)

Parámetros
timeout long

Devuelve
ShellCommandCallable<V>