DeviceConcurrentUtil.ShellCommandCallable
public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object
java.lang.ऑब्जेक्ट | |
मैं | 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> |