DeviceConcurrentUtil.ShellCommandCallable
public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.DeviceConcurrentUtil.ShellCommandCallable<V> |
Une ERROR(/Callable)
qui encapsule les détails de l'exécution de la commande shell sur un ITestDevice
.
Doit implémenter processOutput(String)
pour traiter la sortie de la commande et déterminer le retour de Callable
Sommaire
Constructeurs publics | |
---|---|
ShellCommandCallable () | |
ShellCommandCallable ( ITestDevice device, String command, long timeout) |
Méthodes publiques | |
---|---|
V | call () |
abstract V | processOutput (String output) |
ShellCommandCallable <V> | setCommand (String command) |
ShellCommandCallable <V> | setDevice ( ITestDevice device) |
ShellCommandCallable <V> | setTimeout (long timeout) |
Constructeurs publics
ShellCommandCallable
public ShellCommandCallable ()
ShellCommandCallable
public ShellCommandCallable (ITestDevice device, String command, long timeout)
Paramètres | |
---|---|
device | ITestDevice |
command | String |
timeout | long |
Méthodes publiques
appel
public V call ()
Retour | |
---|---|
V |
processOutput
public abstract V processOutput (String output)
Paramètres | |
---|---|
output | String |
Retour | |
---|---|
V |
setCommand
public ShellCommandCallable<V> setCommand (String command)
Paramètres | |
---|---|
command | String |
Retour | |
---|---|
ShellCommandCallable <V> |
setDevice
public ShellCommandCallable<V> setDevice (ITestDevice device)
Paramètres | |
---|---|
device | ITestDevice |
Retour | |
---|---|
ShellCommandCallable <V> |
setTimeout
public ShellCommandCallable<V> setTimeout (long timeout)
Paramètres | |
---|---|
timeout | long |
Retour | |
---|---|
ShellCommandCallable <V> |