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.

צריך להטמיע את processOutput(String) כדי לעבד את פלט הפקודה ולקבוע את הערך המוחזר של Callable

סיכום

‫constructors ציבוריים

ShellCommandCallable()
ShellCommandCallable(ITestDevice device, String command, long timeout)

‫methods ציבוריים

V call()
abstract V processOutput(String output)
ShellCommandCallable<V> setCommand(String command)
ShellCommandCallable<V> setDevice(ITestDevice device)
ShellCommandCallable<V> setTimeout(long timeout)

‫constructors ציבוריים

ShellCommandCallable

public ShellCommandCallable ()

ShellCommandCallable

public ShellCommandCallable (ITestDevice device, 
                String command, 
                long timeout)

פרמטרים
device ITestDevice

command String

timeout long

‫methods ציבוריים

שיחה

public V call ()

החזרות
V

הקפצת הודעות שגיאה (throw)
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>