com.caucho.health.predicate
Class IfHealthOk

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.IfHealthOk
All Implemented Interfaces:
HealthPredicate

@Configurable
public class IfHealthOk
extends IfHealthStatus

Qualifies an action to match OK health status.

<health:HttpStatusHealthCheck ee:Named="httpStatusCheck">
   <url>http://localhost:8080/test-ping.jsp</url>
 </health:HttpStatusHealthCheck>
 
 <mail name="healthMailer">
   <from>resin@yourdomain.com</from>
   <smtp-host>localhost</smtp-host>
   <smtp-port>25</smtp-port>
 </mail>
 
 <health:SendMail mail="${healthMailer}">
   <to>admin@yourdomain.com</to>
   <to>another_admin@yourdomain.com</to>
   <health:IfHealthOk healthCheck="${httpStatusCheck}"/>
 </health:SendMail>
 


Constructor Summary
IfHealthOk()
           
IfHealthOk(HealthCheck healthCheck)
           
 
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

IfHealthOk

public IfHealthOk()

IfHealthOk

public IfHealthOk(HealthCheck healthCheck)