StatusCheckerResult

public class StatusCheckerResult
extends Object

java.lang.Object
   ↳ com.android.tradefed.suite.checker.StatusCheckerResult


Contains the result of a ISystemStatusChecker execution.

Summary

Nested classes

enum StatusCheckerResult.CheckStatus

 

Public constructors

StatusCheckerResult()

Create a StatusCheckerResult with the default StatusCheckerResult.CheckStatus.FAILED status.

StatusCheckerResult(StatusCheckerResult.CheckStatus status)

Create a StatusCheckerResult with the given status.

Public methods

String getErrorMessage()

Returns the error message associated with a failure.

StatusCheckerResult.CheckStatus getStatus()

Returns the StatusCheckerResult.CheckStatus of the checker.

void setErrorMessage(String message)

Sets the error message associated with a failure.

void setStatus(StatusCheckerResult.CheckStatus status)

Sets the StatusCheckerResult.CheckStatus of the checker.

Public constructors

StatusCheckerResult

public StatusCheckerResult ()

Create a StatusCheckerResult with the default StatusCheckerResult.CheckStatus.FAILED status.

StatusCheckerResult

public StatusCheckerResult (StatusCheckerResult.CheckStatus status)

Create a StatusCheckerResult with the given status.

Parameters
status StatusCheckerResult.CheckStatus: the StatusCheckerResult.CheckStatus

Public methods

getErrorMessage

public String getErrorMessage ()

Returns the error message associated with a failure. Can be null even in case of failures.

Returns
String

getStatus

public StatusCheckerResult.CheckStatus getStatus ()

Returns the StatusCheckerResult.CheckStatus of the checker.

Returns
StatusCheckerResult.CheckStatus

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 StatusCheckerResult.CheckStatus of the checker.

Parameters
status StatusCheckerResult.CheckStatus