com.caucho.health.predicate
Class LifecyclePredicate

java.lang.Object
  extended by com.caucho.health.predicate.AbstractHealthPredicate
      extended by com.caucho.health.predicate.EventPredicate
          extended by com.caucho.health.predicate.LifecyclePredicate
All Implemented Interfaces:
HealthActionAware, HealthPredicate, LifecycleListener

@Configurable
public abstract class LifecyclePredicate
extends EventPredicate
implements LifecycleListener


Field Summary
 
Fields inherited from class com.caucho.health.predicate.EventPredicate
_healthService
 
Constructor Summary
LifecyclePredicate()
           
 
Method Summary
 void init()
           
abstract  boolean isMatch(HealthService healthService, LifecycleState oldState, LifecycleState newState)
           
 void lifecycleEvent(LifecycleState oldState, LifecycleState newState)
           
 
Methods inherited from class com.caucho.health.predicate.EventPredicate
doAction, isMatch, setAction
 
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

LifecyclePredicate

public LifecyclePredicate()
Method Detail

init

@PostConstruct
public void init()
Overrides:
init in class EventPredicate

lifecycleEvent

public void lifecycleEvent(LifecycleState oldState,
                           LifecycleState newState)
Specified by:
lifecycleEvent in interface LifecycleListener

isMatch

public abstract boolean isMatch(HealthService healthService,
                                LifecycleState oldState,
                                LifecycleState newState)