com.caucho.health.predicate
Class IfHealthStatus
java.lang.Object
com.caucho.health.predicate.AbstractHealthPredicate
com.caucho.health.predicate.AbstractScheduledHealthPredicate
com.caucho.health.predicate.AbstractHealthCheckPredicate
com.caucho.health.predicate.IfHealthStatus
- All Implemented Interfaces:
- HealthPredicate
- Direct Known Subclasses:
- IfCriticalRechecked, IfHealthCritical, IfHealthFatal, IfHealthOk, IfHealthUnknown, IfHealthWarning
@Configurable
public class IfHealthStatus
- extends AbstractHealthCheckPredicate
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IfHealthStatus
public IfHealthStatus(HealthStatus status)
IfHealthStatus
public IfHealthStatus(HealthCheck healthCheck,
HealthStatus status)
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