DeviceConcurrentUtil.ShellCommandCallable

public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object

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


ERROR(/Callable), który zawiera szczegóły wykonania polecenia powłoki na ITestDevice.

Aby przetworzyć dane wyjściowe polecenia i określić wartość zwracaną przez funkcję Callable, musisz zaimplementować funkcję processOutput(String).

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

dzwonienie

public V call ()

Zwroty
V

processOutput

public abstract V processOutput (String output)

Parametry
output String

Zwroty
V

setCommand

public ShellCommandCallable<V> setCommand (String command)

Parametry
command String

Zwroty
ShellCommandCallable<V>

setDevice

public ShellCommandCallable<V> setDevice (ITestDevice device)

Parametry
device ITestDevice

Zwroty
ShellCommandCallable<V>

setTimeout

public ShellCommandCallable<V> setTimeout (long timeout)

Parametry
timeout long

Zwroty
ShellCommandCallable<V>