DeviceConcurrentUtil.ShellCommandCallable
public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.DeviceConcurrentUtil.ShellCommandCallable<V> |
Ein ERROR(/Callable)
, der die Details der Ausführung des Shell-Befehls auf einem ITestDevice
.
Muss processOutput(String)
implementieren, um die Befehlsausgabe zu verarbeiten und die Rückgabe des Callable
zu bestimmen
Zusammenfassung
Öffentliche Konstrukteure | |
---|---|
ShellCommandCallable () | |
ShellCommandCallable ( ITestDevice device, String command, long timeout) |
Öffentliche Methoden | |
---|---|
V | call () |
abstract V | processOutput (String output) |
ShellCommandCallable <V> | setCommand (String command) |
ShellCommandCallable <V> | setDevice ( ITestDevice device) |
ShellCommandCallable <V> | setTimeout (long timeout) |
Öffentliche Konstrukteure
ShellCommandCallable
public ShellCommandCallable ()
ShellCommandCallable
public ShellCommandCallable (ITestDevice device, String command, long timeout)
Parameter | |
---|---|
device | ITestDevice |
command | String |
timeout | long |
Öffentliche Methoden
Anruf
public V call ()
Kehrt zurück | |
---|---|
V |
Prozessausgabe
public abstract V processOutput (String output)
Parameter | |
---|---|
output | String |
Kehrt zurück | |
---|---|
V |
setCommand
public ShellCommandCallable<V> setCommand (String command)
Parameter | |
---|---|
command | String |
Kehrt zurück | |
---|---|
ShellCommandCallable <V> |
setDevice
public ShellCommandCallable<V> setDevice (ITestDevice device)
Parameter | |
---|---|
device | ITestDevice |
Kehrt zurück | |
---|---|
ShellCommandCallable <V> |
setTimeout
public ShellCommandCallable<V> setTimeout (long timeout)
Parameter | |
---|---|
timeout | long |
Kehrt zurück | |
---|---|
ShellCommandCallable <V> |