DeviceConcurrentUtil.ShellCommandCallable
public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.DeviceConcurrentUtil.ShellCommandCallable <V> |
ERROR(/Callable)
يلف تفاصيل تنفيذ أمر shell على جهاز 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 |
عملية الإخراج
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> |