com.caucho.health.predicate
Class IfHealthEvent
java.lang.Object
com.caucho.health.predicate.AbstractHealthPredicate
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>
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IfHealthEvent
public IfHealthEvent()
IfHealthEvent
public IfHealthEvent(java.util.regex.Pattern regexp)
IfHealthEvent
public IfHealthEvent(java.lang.String regexp)
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