com.caucho.health.predicate
Class IfUptime

java.lang.Object
  extended by com.caucho.health.predicate.AbstractHealthPredicate
      extended by com.caucho.health.predicate.AbstractScheduledHealthPredicate
          extended by 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> 
 


Constructor Summary
IfUptime()
           
 
Method Summary
 void init()
           
 boolean isMatch(HealthEvent healthEvent)
          The abstract match returns true, so a child can combine its own matches with the parent.
 void setAfter(Period period)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IfUptime

public IfUptime()
Method Detail

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