DeviceConcurrentUtil.ShellCommandCallable

public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object

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


Um ERROR(/Callable) que agrupa 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

ShellCommandCallable

public ShellCommandCallable ()

ShellCommandCallable

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

Parâmetros
device ITestDevice

command String

timeout long

Métodos públicos

chamar

public V call ()

Devoluções
V

saída do processo

public abstract V processOutput (String output)

Parâmetros
output String

Devoluções
V

setCommand

public ShellCommandCallable<V> setCommand (String command)

Parâmetros
command String

Devoluções
ShellCommandCallable <V>

setDispositivo

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>