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) |
सार्वजनिक निर्माणकर्ता
शेलकोमैंडक्लेबल
public 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 |
सेटकमांड
public ShellCommandCallable<V> setCommand (String command)है
मापदंडों | |
---|---|
command | String |
रिटर्न | |
---|---|
ShellCommandCallable <V> |
सेटवीस
public ShellCommandCallable<V> setDevice (ITestDevice device)
मापदंडों | |
---|---|
device | ITestDevice |
रिटर्न | |
---|---|
ShellCommandCallable <V> |
सेटटाइमआउट
public ShellCommandCallable<V> setTimeout (long timeout)
मापदंडों | |
---|---|
timeout | long |
रिटर्न | |
---|---|
ShellCommandCallable <V> |