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>