DeviceConcurrentUtil.ShellCommandCallable

public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object

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


Um ERROR(/Callable) que encapsula os detalhes da execução do comando shell no um ITestDevice.

É necessário implementar processOutput(String) para processar o comando. a saída e determinar o retorno de Callable

Resumo

Construtores 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)

Construtores 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

ligar

public V call ()

Retorna
V

processOutput

public abstract V processOutput (String output)

Parâmetros
output String

Retorna
V

setCommand

public ShellCommandCallable<V> setCommand (String command)

Parâmetros
command String

Retorna
ShellCommandCallable<V>

Definir dispositivo

public ShellCommandCallable<V> setDevice (ITestDevice device)

Parâmetros
device ITestDevice

Retorna
ShellCommandCallable<V>

setTimeout

public ShellCommandCallable<V> setTimeout (long timeout)

Parâmetros
timeout long

Retorna
ShellCommandCallable<V>