DeviceConcurrentUtil.ShellCommandCallable
public
static
abstract
class
DeviceConcurrentUtil.ShellCommandCallable
extends Object
java.lang.Object | |
🎞 | com.android.tradefed.util.DeviceConcurrentUtil.ShellCommandCallable<V> |
ERROR(/Callable)
che aggrega i dettagli dell'esecuzione del comando shell su
un ITestDevice
.
Devi implementare processOutput(String)
per elaborare il comando
l'output 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
Richiama ShellCommand
public ShellCommandCallable ()
Richiama ShellCommand
public ShellCommandCallable (ITestDevice device, String command, long timeout)
Parametri | |
---|---|
device |
ITestDevice |
command |
String |
timeout |
long |
Metodi pubblici
chiamata
public V call ()
Ritorni | |
---|---|
V |
Output di processo
public abstract V processOutput (String output)
Parametri | |
---|---|
output |
String |
Ritorni | |
---|---|
V |
ImpostaComando
public ShellCommandCallable<V> setCommand (String command)
Parametri | |
---|---|
command |
String |
Ritorni | |
---|---|
ShellCommandCallable<V> |
impostaDispositivo
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> |