@Configurable public class And extends AbstractCombiningPredicate
Note: 'And' is the default and thus not strictly necessary in the example below.
<health:HttpStatusHealthCheck ee:Named="httpCheck1">
<url>http://localhost:8080/check1.jsp</url>
</health:HttpStatusHealthCheck>
<health:HttpStatusHealthCheck ee:Named="httpCheck2">
<url>http://localhost:8080/check2.jsp</url>
</health:HttpStatusHealthCheck>
<health:Restart>
<health:And>
<health:IfHealthCritical healthCheck="${httpCheck1}"/>
<health:IfHealthCritical healthCheck="${httpCheck2}"/>
</health:And>
</health:Restart>
Constructor and Description |
---|
And() |
Modifier and Type | Method and Description |
---|---|
boolean |
isMatch(HealthEvent healthEvent)
Matches children with logical AND operation
|
add, getPredicates, init, setAction
toString
public boolean isMatch(HealthEvent healthEvent)
isMatch
in interface HealthPredicate
isMatch
in class AbstractHealthPredicate