DeviceConcurrentUtil.ShellCommandCallable

public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object

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


一個ERROR(/Callable) ,包含在ITestDevice上執行 shell 指令的詳細資訊。

必須實作processOutput(String)來處理指令輸出並確定Callable的回傳

概括

公共構造函數

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

處理輸出

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>