DeviceConcurrentUtil.ShellCommandCallable

public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object

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


Un ERROR(/Callable) che racchiude i dettagli dell'esecuzione del comando shell su un ITestDevice.

Deve implementare processOutput(String) per elaborare l'output del comando e determinare il ritorno 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

chiamata

public V call ()

Ritorni
V

processOutput

public abstract V processOutput (String output)

Parametri
output String

Ritorni
V

setCommand

public ShellCommandCallable<V> setCommand (String command)

Parametri
command String

Ritorni
ShellCommandCallable<V>

setDevice

public ShellCommandCallable<V> setDevice (ITestDevice device)

Parametri
device ITestDevice

Ritorni
ShellCommandCallable<V>

setTimeout

public ShellCommandCallable<V> setTimeout (long timeout)

Parametri
timeout long

Ritorni
ShellCommandCallable<V>