com.caucho.health.predicate
Class OnAbnormalStop

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

@Configurable
public class OnAbnormalStop
extends OnStop

Qualifies an action to match only when Resin is stopping with an non-OK exit code.

<health:Snapshot>
   <health:OnAbnormalStop/>
 </health:Snapshot 
 


Constructor Summary
OnAbnormalStop()
           
 
Method Summary
 void addNormalExitCode(ExitCode exitCode)
           
 void init()
           
 boolean isMatch(HealthEvent event)
          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

OnAbnormalStop

public OnAbnormalStop()
Method Detail

init

@PostConstruct
public void init()

addNormalExitCode

@Configurable
public void addNormalExitCode(ExitCode exitCode)

isMatch

public boolean isMatch(HealthEvent event)
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 OnStop