DeviceConcurrentUtil.ShellCommandCallable
public
static
abstract
class
DeviceConcurrentUtil.ShellCommandCallable
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.DeviceConcurrentUtil.ShellCommandCallable<V> |
ERROR(/Callable)
שמכיל את הפרטים של הפעלת פקודת מעטפת ב-ITestDevice
.
צריך להטמיע את processOutput(String)
כדי לעבד את הפלט של הפקודה ולהחליט אם להחזיר את הערך Callable
סיכום
קונסטרוקטורים גלויים לכולם | |
---|---|
ShellCommandCallable()
|
|
ShellCommandCallable(ITestDevice device, String command, long timeout)
|
שיטות ציבוריות | |
---|---|
V
|
call()
|
abstract
V
|
processOutput(String output)
|
ShellCommandCallable<V>
|
setCommand(String command)
|
ShellCommandCallable<V>
|
setDevice(ITestDevice device)
|
ShellCommandCallable<V>
|
setTimeout(long timeout)
|
קונסטרוקטורים גלויים לכולם
ShellCommandCallable
public ShellCommandCallable ()
ShellCommandCallable
public ShellCommandCallable (ITestDevice device, String command, long timeout)
פרמטרים | |
---|---|
device |
ITestDevice |
command |
String |
timeout |
long |
שיטות ציבוריות
שיחה
public V call ()
החזרות | |
---|---|
V |
processOutput
public abstract V processOutput (String output)
פרמטרים | |
---|---|
output |
String |
החזרות | |
---|---|
V |
setCommand
public ShellCommandCallable<V> setCommand (String command)
פרמטרים | |
---|---|
command |
String |
החזרות | |
---|---|
ShellCommandCallable<V> |
setDevice
public ShellCommandCallable<V> setDevice (ITestDevice device)
פרמטרים | |
---|---|
device |
ITestDevice |
החזרות | |
---|---|
ShellCommandCallable<V> |
setTimeout
public ShellCommandCallable<V> setTimeout (long timeout)
פרמטרים | |
---|---|
timeout |
long |
החזרות | |
---|---|
ShellCommandCallable<V> |