StatusCheckerResult
  public
  
  
  
  class
  StatusCheckerResult
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | com.android.tradefed.suite.checker.StatusCheckerResult | 
Contains the result of a ISystemStatusChecker execution.
Summary
| Fields | |
|---|---|
| 
    public
    static
    final
    String | SYSTEM_CHECKER
 | 
| Public constructors | |
|---|---|
| 
      StatusCheckerResult()
      Create a  | |
| 
      StatusCheckerResult(StatusCheckerResult.CheckStatus status)
      Create a  | |
| Public methods | |
|---|---|
| 
        
        
        
        
        
        void | 
      addModuleProperty(String propertyName, String property)
      Adds a module property reported by the checker. | 
| 
        
        
        
        
        
        String | 
      getErrorMessage()
      Returns the error message associated with a failure. | 
| 
        
        
        
        
        
         | 
      getModuleProperties()
      Returns the module properties reported by the checker. | 
| 
        
        
        
        
        
        StatusCheckerResult.CheckStatus | 
      getStatus()
      Returns the  | 
| 
        
        
        
        
        
        boolean | 
      isBugreportNeeded()
      Returns whether or not a bugreport is needed in case of checker failure. | 
| 
        
        
        
        
        
        void | 
      setBugreportNeeded(boolean need)
      Sets whether or not a bugreport is needed in case of checker failure. | 
| 
        
        
        
        
        
        void | 
      setErrorMessage(String message)
      Sets the error message associated with a failure. | 
| 
        
        
        
        
        
        void | 
      setStatus(StatusCheckerResult.CheckStatus status)
      Sets the  | 
Fields
SYSTEM_CHECKER
public static final String SYSTEM_CHECKER
Public constructors
StatusCheckerResult
public StatusCheckerResult ()
Create a StatusCheckerResult with the default CheckStatus.FAILED status.
StatusCheckerResult
public StatusCheckerResult (StatusCheckerResult.CheckStatus status)
Create a StatusCheckerResult with the given status.
| Parameters | |
|---|---|
| status | StatusCheckerResult.CheckStatus: theCheckStatus | 
Public methods
addModuleProperty
public void addModuleProperty (String propertyName, 
                String property)Adds a module property reported by the checker.
| Parameters | |
|---|---|
| propertyName | String | 
| property | String | 
getErrorMessage
public String getErrorMessage ()
Returns the error message associated with a failure. Can be null even in case of failures.
| Returns | |
|---|---|
| String | |
getModuleProperties
publicgetModuleProperties () 
Returns the module properties reported by the checker.
| Returns | |
|---|---|
|  | |
getStatus
public StatusCheckerResult.CheckStatus getStatus ()
Returns the CheckStatus of the checker.
| Returns | |
|---|---|
| StatusCheckerResult.CheckStatus | |
isBugreportNeeded
public boolean isBugreportNeeded ()
Returns whether or not a bugreport is needed in case of checker failure.
| Returns | |
|---|---|
| boolean | |
setBugreportNeeded
public void setBugreportNeeded (boolean need)
Sets whether or not a bugreport is needed in case of checker failure.
| Parameters | |
|---|---|
| need | boolean | 
setErrorMessage
public void setErrorMessage (String message)
Sets the error message associated with a failure.
| Parameters | |
|---|---|
| message | String | 
setStatus
public void setStatus (StatusCheckerResult.CheckStatus status)
Sets the CheckStatus of the checker.
| Parameters | |
|---|---|
| status | StatusCheckerResult.CheckStatus | 
