DeviceConcurrentUtil.ShellCommandCallable

public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object implements Callable<V>

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


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

Броски
Exception

выходной процесс

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>