DeviceConcurrentUtil.ShellCommandCallable

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

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


यह 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

थ्रॉ
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>