DeviceConcurrentUtil.ShellCommandCallable

public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object

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


एक ERROR(/Callable), जो ITestDevice पर शेल कमांड को चलाने की जानकारी को रैप करता है.

कमांड के आउटपुट को प्रोसेस करने और Callable के रिटर्न का पता लगाने के लिए, processOutput(String) को लागू करना ज़रूरी है

खास जानकारी

पब्लिक कंस्ट्रक्टर

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>