IRunUtil.IRunnableResult
  public
  static
  
  
  interface
  IRunUtil.IRunnableResult
  
  
  
| com.android.tradefed.util.IRunUtil.IRunnableResult | 
An interface for asynchronously executing an operation that returns a boolean status.
Summary
| Public methods | |
|---|---|
| 
        abstract
        
        
        
        
        void | 
      cancel()
      Cancel the operation. | 
| 
        
        default
        
        
        
        boolean | 
      checkOutputMonitor(Long idleOutputTimeout)
      Checks if the currently running operation has made progress since the last check. | 
| 
        
        default
        
        
        
         | 
      getCommand()
      Returns the command associated with the runnable. | 
| 
        
        default
        
        
        
        CommandResult | 
      getResult()
      Returns the  | 
| 
        abstract
        
        
        
        
        boolean | 
      run()
      Execute the operation. | 
Public methods
cancel
public abstract void cancel ()
Cancel the operation.
checkOutputMonitor
public boolean checkOutputMonitor (Long idleOutputTimeout)
Checks if the currently running operation has made progress since the last check.
| Parameters | |
|---|---|
| idleOutputTimeout | Long: ms idle with no observed progress before beginning to assume no
     progress is being made. | 
| Returns | |
|---|---|
| boolean | true if progress has been detected otherwise false. | 
getCommand
publicgetCommand () 
Returns the command associated with the runnable.
| Returns | |
|---|---|
|  | |
getResult
public CommandResult getResult ()
Returns the CommandResult associated with the command.
| Returns | |
|---|---|
| CommandResult | |
run
public abstract boolean run ()
Execute the operation.
| Returns | |
|---|---|
| boolean | trueif operation is performed successfully,falseotherwise | 
| Throws | |
|---|---|
| Exception | if operation terminated abnormally | 
