DeviceConcurrentUtil.ShellCommandCallable
public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.DeviceConcurrentUtil.ShellCommandCallable <V> |
ITestDevice
でのシェルコマンドの実行の詳細をラップするERROR(/Callable)
。
コマンド出力を処理し、 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) |
パブリックコンストラクター
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
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> |