com.caucho.health.predicate
Class IfRechecked

java.lang.Object
  extended by com.caucho.health.predicate.AbstractHealthPredicate
      extended by com.caucho.health.predicate.AbstractScheduledHealthPredicate
          extended by com.caucho.health.predicate.IfRechecked
All Implemented Interfaces:
HealthPredicate

@Configurable
public class IfRechecked
extends AbstractScheduledHealthPredicate

Qualifies an action to match only after the required number of rechecks have been performed.

<health:HttpStatusHealthCheck ee:Named="httpStatusCheck">
   <url>http://localhost:8080/test-ping.jsp</url>
 </health:HttpStatusHealthCheck>
 
 <health:Restart>
   <health:IfHealthCritical healthCheck="${httpStatusCheck}"/>
   <health:IfRechecked/>
 </health:Restart> 
 

See Also:
HealthSystem

Constructor Summary
IfRechecked()
           
 
Method Summary
 boolean isMatch(HealthEvent healthEvent)
          The abstract match returns true, so a child can combine its own matches with the parent.
 
Methods inherited from class com.caucho.health.predicate.AbstractHealthPredicate
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IfRechecked

public IfRechecked()
Method Detail

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