com.caucho.health.predicate
Class IfUptime
java.lang.Object
com.caucho.health.predicate.AbstractHealthPredicate
com.caucho.health.predicate.AbstractScheduledHealthPredicate
com.caucho.health.predicate.IfUptime
- All Implemented Interfaces:
- HealthPredicate
@Configurable
public class IfUptime
- extends AbstractScheduledHealthPredicate
Qualifies an action to match an amount of time after startup.
<health:Restart>
<health:IfUptime after="12h"/>
</health:Restart>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IfUptime
public IfUptime()
init
@PostConstruct
public void init()
setAfter
@Configurable
public void setAfter(Period period)
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
toString
public java.lang.String toString()
- Overrides:
toString in class AbstractHealthPredicate