DeviceConcurrentUtil.ShellCommandCallable

public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object

java.lang.Объект
com.android.tradefed.util.DeviceConcurrentUtil.ShellCommandCallable<V>


ERROR(/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

ProcessOutput

public abstract V processOutput (String output)

Параметры
output String

Возврат
V

setCommand

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>