@Configurable public class Not extends AbstractHealthPredicate
Complex tests can be built using <health:Not>, <health:And> and <helth:Or> on top of simpler primary predicates.
<health:HttpStatusHealthCheck ee:Named="httpStatusCheck">
<url>http://localhost:8080/test-ping.jsp</url>
</health:HttpStatusHealthCheck>
<health:Restart>
<health:IfHealthCritical healthCheck="${httpStatusCheck}"/>
<health:Not>
<health:IfRecovered/>
</health:Not>
</health:Restart>
Constructor and Description |
---|
Not() |
Not(HealthPredicate predicate) |
Modifier and Type | Method and Description |
---|---|
void |
add(HealthPredicate predicate)
Add a child predicate.
|
void |
init() |
boolean |
isMatch(HealthEvent healthEvent)
True if child predicate does not match.
|
toString
public Not()
public Not(HealthPredicate predicate)
public void add(HealthPredicate predicate)
predicate
- the child predicate@PostConstruct public void init()
public boolean isMatch(HealthEvent healthEvent)
isMatch
in interface HealthPredicate
isMatch
in class AbstractHealthPredicate
request
- the servlet request to test