DeviceConcurrentUtil.ShellCommandCallable

public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object implements Callable<V>

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


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

É necessário 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

ligar

public V call ()

Devoluções
V

Gera
Exception

processOutput

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>

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

Retorna
ShellCommandCallable<V>