DeviceConcurrentUtil.ShellCommandCallable
public
static
abstract
class
DeviceConcurrentUtil.ShellCommandCallable
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.DeviceConcurrentUtil.ShellCommandCallable<V> |
A ERROR(/Callable)
that wraps the details of executing shell command on
an ITestDevice
.
Must implement processOutput(String)
to process the command
output and determine return of the Callable
Summary
Public constructors | |
---|---|
ShellCommandCallable()
|
|
ShellCommandCallable(ITestDevice device, String command, long timeout)
|
Public methods | |
---|---|
V
|
call()
|
abstract
V
|
processOutput(String output)
|
ShellCommandCallable<V>
|
setCommand(String command)
|
ShellCommandCallable<V>
|
setDevice(ITestDevice device)
|
ShellCommandCallable<V>
|
setTimeout(long timeout)
|
Public constructors
ShellCommandCallable
public ShellCommandCallable ()
ShellCommandCallable
public ShellCommandCallable (ITestDevice device, String command, long timeout)
Parameters | |
---|---|
device |
ITestDevice |
command |
String |
timeout |
long |
Public methods
call
public V call ()
Returns | |
---|---|
V |
processOutput
public abstract V processOutput (String output)
Parameters | |
---|---|
output |
String |
Returns | |
---|---|
V |
setCommand
public ShellCommandCallable<V> setCommand (String command)
Parameters | |
---|---|
command |
String |
Returns | |
---|---|
ShellCommandCallable<V> |
setDevice
public ShellCommandCallable<V> setDevice (ITestDevice device)
Parameters | |
---|---|
device |
ITestDevice |
Returns | |
---|---|
ShellCommandCallable<V> |
setTimeout
public ShellCommandCallable<V> setTimeout (long timeout)
Parameters | |
---|---|
timeout |
long |
Returns | |
---|---|
ShellCommandCallable<V> |