com.caucho.health.predicate
Class OnStop

java.lang.Object
  extended by com.caucho.health.predicate.AbstractHealthPredicate
      extended by com.caucho.health.predicate.OnStop
All Implemented Interfaces:
HealthPredicate
Direct Known Subclasses:
OnAbnormalStop

@Configurable
public class OnStop
extends AbstractHealthPredicate

Qualifies an action to match only when Resin is stopping.

<health:SendMail mail="${healthMailer}">
   <to>admin@yourdomain.com</to>
   <health:OnStop/>
 </health:SendMail> 
 


Constructor Summary
OnStop()
           
 
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

OnStop

public OnStop()
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 AbstractHealthPredicate