DeviceConcurrentUtil.ShellCommandCallable

public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object implements Callable<V>

java.lang.Object
   ↳ com.android.tradefed.util.DeviceConcurrentUtil.ShellCommandCallable<V>


تمثّل 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

عمليات الطرح
Exception

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>