DeviceConcurrentUtil.ShellCommandCallable

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

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


Element Callable, który zawiera szczegóły wykonania polecenia powłoki na ITestDevice.

Musi implementować processOutput(String), aby przetwarzać dane wyjściowe polecenia i określać zwracanie wartości Callable.

Podsumowanie

Konstruktory publiczne

ShellCommandCallable()
ShellCommandCallable(ITestDevice device, String command, long timeout)

Metody publiczne

V call()
abstract V processOutput(String output)
ShellCommandCallable<V> setCommand(String command)
ShellCommandCallable<V> setDevice(ITestDevice device)
ShellCommandCallable<V> setTimeout(long timeout)

Konstruktory publiczne

ShellCommandCallable

public ShellCommandCallable ()

ShellCommandCallable

public ShellCommandCallable (ITestDevice device, 
                String command, 
                long timeout)

Parametry
device ITestDevice

command String

timeout long

Metody publiczne

zadzwoń

public V call ()

Zwraca
V

Zgłasza
Exception

processOutput

public abstract V processOutput (String output)

Parametry
output String

Zwraca
V

setCommand

public ShellCommandCallable<V> setCommand (String command)

Parametry
command String

Zwraca
ShellCommandCallable<V>

setDevice

public ShellCommandCallable<V> setDevice (ITestDevice device)

Parametry
device ITestDevice

Zwraca
ShellCommandCallable<V>

setTimeout

public ShellCommandCallable<V> setTimeout (long timeout)

Parametry
timeout long

Zwraca
ShellCommandCallable<V>