DeviceConcurrentUtil.ShellCommandCallable

public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object

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


Ein ERROR(/Callable), das die Details zur Ausführung eines Shell-Befehls auf einem ITestDevice umschließt.

processOutput(String) muss implementiert werden, um die Befehlsausgabe zu verarbeiten und die Rückgabe von Callable zu bestimmen.

Zusammenfassung

Öffentliche Konstruktoren

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

Öffentliche Methoden

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

Öffentliche Konstruktoren

ShellCommandCallable

public ShellCommandCallable ()

ShellCommandCallable

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

Parameter
device ITestDevice

command String

timeout long

Öffentliche Methoden

Anruf

public V call ()

Returns
V

processOutput

public abstract V processOutput (String output)

Parameter
output String

Returns
V

setCommand

public ShellCommandCallable<V> setCommand (String command)

Parameter
command String

Returns
ShellCommandCallable<V>

setDevice

public ShellCommandCallable<V> setDevice (ITestDevice device)

Parameter
device ITestDevice

Returns
ShellCommandCallable<V>

setTimeout

public ShellCommandCallable<V> setTimeout (long timeout)

Parameter
timeout long

Returns
ShellCommandCallable<V>