com.caucho.health.predicate
Class IfCriticalRechecked

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
                  extended by com.caucho.health.predicate.IfCriticalRechecked
All Implemented Interfaces:
HealthPredicate

@Configurable
public class IfCriticalRechecked
extends IfHealthStatus

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:IfCriticalRechecked healthCheck="${httpStatusCheck}" count="5"/>
 </health:Restart> 
 

See Also:
HealthSystem

Constructor Summary
IfCriticalRechecked()
           
IfCriticalRechecked(HealthCheck healthCheck)
           
IfCriticalRechecked(HealthCheck healthCheck, long recheckTime)
           
 
Method Summary
 
Methods inherited from class com.caucho.health.predicate.IfHealthStatus
getStatus, isMatch, setCount, setStatus, setSystemRecheckTime, setTime, setTimeMillis
 
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

IfCriticalRechecked

public IfCriticalRechecked()

IfCriticalRechecked

public IfCriticalRechecked(HealthCheck healthCheck)

IfCriticalRechecked

public IfCriticalRechecked(HealthCheck healthCheck,
                           long recheckTime)