com.caucho.health.predicate
Class EventPredicate

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

@Configurable
public abstract class EventPredicate
extends AbstractHealthPredicate
implements HealthActionAware


Field Summary
protected  HealthService _healthService
           
 
Constructor Summary
EventPredicate()
           
 
Method Summary
protected  void doAction()
           
 void init()
           
 boolean isMatch(HealthEvent healthEvent)
          The abstract match returns true, so a child can combine its own matches with the parent.
 void setAction(HealthAction action)
           
 
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
 

Field Detail

_healthService

protected HealthService _healthService
Constructor Detail

EventPredicate

public EventPredicate()
Method Detail

init

@PostConstruct
public void init()

setAction

public void setAction(HealthAction action)
Specified by:
setAction in interface HealthActionAware

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

doAction

protected void doAction()