com.caucho.health.predicate
Class IfHealthStatus

java.lang.Object
  extended by com.caucho.health.predicate.AbstractHealthPredicate
      extended by com.caucho.health.predicate.AbstractScheduledHealthPredicate
          extended by com.caucho.health.predicate.AbstractHealthCheckPredicate
              extended by com.caucho.health.predicate.IfHealthStatus
All Implemented Interfaces:
HealthPredicate
Direct Known Subclasses:
IfCriticalRechecked, IfHealthCritical, IfHealthFatal, IfHealthOk, IfHealthUnknown, IfHealthWarning

@Configurable
public class IfHealthStatus
extends AbstractHealthCheckPredicate


Constructor Summary
IfHealthStatus(HealthCheck healthCheck, HealthStatus status)
           
IfHealthStatus(HealthStatus status)
           
 
Method Summary
 HealthStatus getStatus()
           
 boolean isMatch(HealthEvent healthEvent)
          The abstract match returns true, so a child can combine its own matches with the parent.
 void setCount(int recheckCount)
           
 void setStatus(HealthStatus status)
           
 void setSystemRecheckTime(boolean isSystemRecheck)
           
 void setTime(Period recheckTime)
           
 void setTimeMillis(long recheckTime)
           
 
Methods inherited from class com.caucho.health.predicate.AbstractHealthCheckPredicate
getHealthCheck, getLastResult, setHealthCheck, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IfHealthStatus

public IfHealthStatus(HealthStatus status)

IfHealthStatus

public IfHealthStatus(HealthCheck healthCheck,
                      HealthStatus status)
Method Detail

setStatus

@Configurable
public void setStatus(HealthStatus status)

getStatus

public HealthStatus getStatus()

setTime

@Configurable
public void setTime(Period recheckTime)

setTimeMillis

public void setTimeMillis(long recheckTime)

setSystemRecheckTime

public void setSystemRecheckTime(boolean isSystemRecheck)

setCount

public void setCount(int recheckCount)

isMatch

public boolean isMatch(HealthEvent healthEvent)
Description copied from class: AbstractHealthPredicate
The abstract match returns true, so a child can combine its own matches with the parent. See AbstractScheduledCheckPredicate for a case where the parent isMatch doesn't return true.

Specified by:
isMatch in interface HealthPredicate
Overrides:
isMatch in class AbstractScheduledHealthPredicate