DeviceConcurrentUtil.ShellCommandCallable
public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object
Obiekt Java.lang.Object | |
↳ | com.android.tradefed.util.DeviceConcurrentUtil.ShellCommandCallable<V> |
ERROR(/Callable)
, który otacza szczegóły wykonywania polecenia powłoki na urządzeniu ITestDevice
.
Należy zaimplementować processOutput(String)
, aby przetworzyć dane wyjściowe polecenia i określić zwrot Callable
Streszczenie
Konstruktorzy publiczni | |
---|---|
ShellCommandCallable () | |
ShellCommandCallable ( ITestDevice device, String command, long timeout) |
Metody publiczne | |
---|---|
V | call () |
abstract V | processOutput (String output) |
ShellCommandCallable <V> | setCommand (String command) |
ShellCommandCallable <V> | setDevice ( ITestDevice device) |
ShellCommandCallable <V> | setTimeout (long timeout) |
Konstruktorzy publiczni
Polecenia powłoki, które można wywołać
public ShellCommandCallable ()
Polecenia powłoki, które można wywołać
public ShellCommandCallable (ITestDevice device, String command, long timeout)
Parametry | |
---|---|
device | ITestDevice |
command | String |
timeout | long |
Metody publiczne
dzwonić
public V call ()
Zwroty | |
---|---|
V |
Dane wyjściowe procesu
public abstract V processOutput (String output)
Parametry | |
---|---|
output | String |
Zwroty | |
---|---|
V |
ustawpolecenie
public ShellCommandCallable<V> setCommand (String command)
Parametry | |
---|---|
command | String |
Zwroty | |
---|---|
ShellCommandCallable <V> |
ustaw urządzenie
public ShellCommandCallable<V> setDevice (ITestDevice device)
Parametry | |
---|---|
device | ITestDevice |
Zwroty | |
---|---|
ShellCommandCallable <V> |
ustaw limit czasu
public ShellCommandCallable<V> setTimeout (long timeout)
Parametry | |
---|---|
timeout | long |
Zwroty | |
---|---|
ShellCommandCallable <V> |