DeviceConcurrentUtil.ShellCommandCallable
public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object
java.lang.オブジェクト | |
↳ | 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) |
パブリックコンストラクター
シェルコマンド呼び出し可能
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 |
setコマンド
public ShellCommandCallable<V> setCommand (String command)
パラメーター | |
---|---|
command | String |
戻り値 | |
---|---|
ShellCommandCallable <V> |
セットデバイス
public ShellCommandCallable<V> setDevice (ITestDevice device)
パラメーター | |
---|---|
device | ITestDevice |
戻り値 | |
---|---|
ShellCommandCallable <V> |
setTimeout
public ShellCommandCallable<V> setTimeout (long timeout)
パラメーター | |
---|---|
timeout | long |
戻り値 | |
---|---|
ShellCommandCallable <V> |