DeviceConcurrentUtil.ShellCommandCallable

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

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


Ein -Objekt, das die Details der Ausführung eines Shell-Befehls auf einem kapselt.CallableITestDevice

processOutput(String) muss implementiert werden, um die Befehl ausgabe zu verarbeiten und den Rückgabewert des 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 ()

Gibt zurück
V

Löst aus
Exception

processOutput

public abstract V processOutput (String output)

Parameter
output String

Gibt zurück
V

setCommand

public ShellCommandCallable<V> setCommand (String command)

Parameter
command String

Gibt zurück
ShellCommandCallable<V>

setDevice

public ShellCommandCallable<V> setDevice (ITestDevice device)

Parameter
device ITestDevice

Gibt zurück
ShellCommandCallable<V>

setTimeout

public ShellCommandCallable<V> setTimeout (long timeout)

Parameter
timeout long

Gibt zurück
ShellCommandCallable<V>