IRunUtil.IRunnableResult
public
static
interface
IRunUtil.IRunnableResult
| com.android.tradefed.util.IRunUtil.IRunnableResult |
Interface permettant d'exécuter de manière asynchrone une opération qui renvoie un état booléen.
Résumé
Méthodes publiques | |
|---|---|
abstract
void
|
cancel()
Annulez l'opération. |
default
boolean
|
checkOutputMonitor(Long idleOutputTimeout)
Vérifie si l'opération en cours a progressé depuis la dernière vérification. |
default
List<String>
|
getCommand()
Renvoie la commande associée à l'exécutable. |
default
CommandResult
|
getResult()
Renvoie le |
abstract
boolean
|
run()
Exécutez l'opération. |
Méthodes publiques
annuler
public abstract void cancel ()
Annulez l'opération.
checkOutputMonitor
public boolean checkOutputMonitor (Long idleOutputTimeout)
Vérifie si l'opération en cours a progressé depuis la dernière vérification.
| Paramètres | |
|---|---|
idleOutputTimeout |
Long : temps d'inactivité en ms sans progression observée avant de supposer qu'aucune progression n'est en cours. |
| Renvoie | |
|---|---|
boolean |
"true" si une progression a été détectée, "false" dans le cas contraire. |
getCommand
public List<String> getCommand ()
Renvoie la commande associée à l'exécutable.
| Renvoie | |
|---|---|
List<String> |
|
getResult
public CommandResult getResult ()
Renvoie le CommandResult associé à la commande.
| Renvoie | |
|---|---|
CommandResult |
|
run
public abstract boolean run ()
Exécutez l'opération.
| Renvoie | |
|---|---|
boolean |
true si l'opération a réussi, false dans le cas contraire. |
| Génère | |
|---|---|
Exception |
si l'opération s'est terminée de manière anormale. |