IRunUtil.IRunnableResult
public static interface IRunUtil.IRunnableResult
com.android.tradefed.util.IRunUtil.IRunnableResult |
Une interface pour exécuter de manière asynchrone une opération qui renvoie un statut 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 d'exécution a progressé depuis la dernière vérification. |
default | getCommand () Renvoie la commande associée au 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 d'exécution a progressé depuis la dernière vérification.
Paramètres | |
---|---|
idleOutputTimeout | Long : ms d'inactivité sans progrès observé avant de commencer à supposer qu'aucun progrès n'est réalisé. |
Retour | |
---|---|
boolean | vrai si des progrès ont été détectés, sinon faux. |
getCommand
publicgetCommand ()
Renvoie la commande associée au exécutable.
Retour | |
---|---|
obtenir le résultat
public CommandResult getResult ()
Renvoie le CommandResult
associé à la commande.
Retour | |
---|---|
CommandResult |
courir
public abstract boolean run ()
Exécutez l'opération.
Retour | |
---|---|
boolean | true si l'opération est effectuée avec succès, false sinon |
Jetés | |
---|---|
Exception | si l'opération s'est terminée anormalement |