DeviceConcurrentUtil.ShellCommandCallable

public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object

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


ERROR(/Callable),包裝在下列環境中執行殼層指令的詳細資料 ITestDevice

必須實作 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

processOutput

public abstract V processOutput (String output)

參數
output String

傳回
V

setCommand (setCommand)

public ShellCommandCallable<V> setCommand (String command)

參數
command String

傳回
ShellCommandCallable<V>

setDevice

public ShellCommandCallable<V> setDevice (ITestDevice device)

參數
device ITestDevice

傳回
ShellCommandCallable<V>

設定逾時

public ShellCommandCallable<V> setTimeout (long timeout)

參數
timeout long

傳回
ShellCommandCallable<V>