com.caucho.health.predicate
Class IfHealthEvent

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

@Configurable
public class IfHealthEvent
extends AbstractHealthPredicate

Qualifies an action to match only on a health event.

<health:ThreadDump>
   <health:IfHealthEvent regexp="caucho.thread"/>
 </health:ThreadDump>
 


Constructor Summary
IfHealthEvent()
           
IfHealthEvent(java.util.regex.Pattern regexp)
           
IfHealthEvent(java.lang.String regexp)
           
 
Method Summary
 boolean isMatch(HealthEvent event)
          The abstract match returns true, so a child can combine its own matches with the parent.
 void setRegexp(java.util.regex.Pattern regexp)
           
 
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

IfHealthEvent

public IfHealthEvent()

IfHealthEvent

public IfHealthEvent(java.util.regex.Pattern regexp)

IfHealthEvent

public IfHealthEvent(java.lang.String regexp)
Method Detail

setRegexp

public void setRegexp(java.util.regex.Pattern regexp)

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 AbstractHealthPredicate