com.caucho.env.health
Class HealthCheckResult

java.lang.Object
  extended by com.caucho.env.health.HealthCheckResult

public class HealthCheckResult
extends java.lang.Object


Constructor Summary
HealthCheckResult()
           
HealthCheckResult(HealthStatus status)
           
HealthCheckResult(HealthStatus status, java.lang.String message)
           
 
Method Summary
 java.lang.String getDescription()
           
 java.lang.Throwable getException()
           
 java.lang.String getMessage()
           
 HealthStatus getStatus()
           
 long getTimestamp()
           
 boolean isCritical()
           
 boolean isFatal()
           
 boolean isOk()
           
 boolean isRecover()
           
 boolean isUnknown()
           
 boolean isWarning()
           
 void setException(java.lang.Throwable exception)
           
 void setMessage(java.lang.String message)
           
 void setRecover(boolean recover)
           
 void setStatus(HealthStatus status)
           
 void setTimestamp(long timestamp)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HealthCheckResult

public HealthCheckResult()

HealthCheckResult

public HealthCheckResult(HealthStatus status)

HealthCheckResult

public HealthCheckResult(HealthStatus status,
                         java.lang.String message)
Method Detail

getStatus

public HealthStatus getStatus()

setStatus

public void setStatus(HealthStatus status)

getMessage

public java.lang.String getMessage()

setMessage

public void setMessage(java.lang.String message)

getTimestamp

public long getTimestamp()

setTimestamp

public void setTimestamp(long timestamp)

isRecover

public boolean isRecover()

setRecover

public void setRecover(boolean recover)

getException

public java.lang.Throwable getException()

setException

public void setException(java.lang.Throwable exception)

isOk

public boolean isOk()

isWarning

public boolean isWarning()

isCritical

public boolean isCritical()

isFatal

public boolean isFatal()

isUnknown

public boolean isUnknown()

getDescription

public java.lang.String getDescription()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object