DeviceConcurrentUtil.ShellCommandCallable

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

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


Un Callable che racchiude i dettagli dell'esecuzione del comando della shell su un ITestDevice.

Devi implementare processOutput(String) per elaborare l'output del comando e determinare il valore restituito di Callable

Riepilogo

Costruttori pubblici

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

Metodi pubblici

V call()
abstract V processOutput(String output)
ShellCommandCallable<V> setCommand(String command)
ShellCommandCallable<V> setDevice(ITestDevice device)
ShellCommandCallable<V> setTimeout(long timeout)

Costruttori pubblici

ShellCommandCallable

public ShellCommandCallable ()

ShellCommandCallable

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

Parametri
device ITestDevice

command String

timeout long

Metodi pubblici

call

public V call ()

Risultati
V

Genera
Exception

processOutput

public abstract V processOutput (String output)

Parametri
output String

Risultati
V

setCommand

public ShellCommandCallable<V> setCommand (String command)

Parametri
command String

Risultati
ShellCommandCallable<V>

setDevice

public ShellCommandCallable<V> setDevice (ITestDevice device)

Parametri
device ITestDevice

Risultati
ShellCommandCallable<V>

setTimeout

public ShellCommandCallable<V> setTimeout (long timeout)

Parametri
timeout long

Risultati
ShellCommandCallable<V>