DeviceConcurrentUtil.ShellCommandCallable

public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object

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


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

Deve implementar processOutput(String) para processar a saída do comando e determinar o retorno do 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

Shell CommandCallable

public ShellCommandCallable ()

Shell CommandCallable

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

Parâmetros
device ITestDevice

command String

timeout long

Métodos públicos

ligar

public V call ()

Devoluções
V

saída do processo

public abstract V processOutput (String output)

Parâmetros
output String

Devoluções
V

comando set

public ShellCommandCallable<V> setCommand (String command)

Parâmetros
command String

Devoluções
ShellCommandCallable <V>

setDevice

public ShellCommandCallable<V> setDevice (ITestDevice device)

Parâmetros
device ITestDevice

Devoluções
ShellCommandCallable <V>

setTimeout

public ShellCommandCallable<V> setTimeout (long timeout)

Parâmetros
timeout long

Devoluções
ShellCommandCallable <V>