DeviceConcurrentUtil.ShellCommandCallable
public
static
abstract
class
DeviceConcurrentUtil.ShellCommandCallable
extends Object
implements
Callable<V>
| java.lang.Object | |
| ↳ | com.android.tradefed.util.DeviceConcurrentUtil.ShellCommandCallable<V> |
ITestDevice でシェル コマンドを実行する詳細をラップする 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 |
|
| 例外 | |
|---|---|
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> |
|