@Configurable public class IfMessage extends AbstractHealthCheckPredicate
<health:HttpStatusHealthCheck ee:Named="httpStatusCheck">
<url>http://localhost:8080/test-ping.jsp</url>
</health:HttpStatusHealthCheck>
<health:Restart>
<health:IfHealthCritical/>
<health:IfMessage healthCheck="${httpStatusCheck}" regexp="Exception"/>
<health:Restart>
Modifier and Type | Field and Description |
---|---|
protected java.util.regex.Pattern |
_regexp |
Constructor and Description |
---|
IfMessage() |
IfMessage(java.util.regex.Pattern regexp) |
Modifier and Type | Method and Description |
---|---|
boolean |
isMatch(HealthEvent healthEvent)
The abstract match returns true, so a child can combine its own
matches with the parent.
|
void |
setRegexp(java.util.regex.Pattern regexp)
Set health message match regular expression
|
getHealthCheck, getLastResult, setHealthCheck, toString
public IfMessage()
public IfMessage(java.util.regex.Pattern regexp)
@Configurable public void setRegexp(java.util.regex.Pattern regexp)
public boolean isMatch(HealthEvent healthEvent)
AbstractHealthPredicate
isMatch
doesn't return true.isMatch
in interface HealthPredicate
isMatch
in class AbstractScheduledHealthPredicate