@Configurable public class IfNotRecent extends AbstractHealthPredicate implements HealthActionAware, HealthActionListener
<health:HttpStatusHealthCheck ee:Named="httpStatusCheck">
<url>http://localhost:8080/test-ping.jsp</url>
</health:HttpStatusHealthCheck>
<health:DumpHeap>
<health:IfHealthCritical healthCheck="${httpStatusCheck}"/>
<health:IfNotRecent time='5m'/>
</health:DumpHeap>
| Constructor and Description |
|---|
IfNotRecent() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterAction(HealthAction action,
HealthService healthService) |
void |
beforeAction(HealthAction action,
HealthService healthService) |
void |
init() |
boolean |
isMatch(HealthEvent healthEvent)
The abstract match returns true, so a child can combine its own
matches with the parent.
|
void |
setAction(HealthAction action) |
void |
setTime(Period time)
The time before the action can execute again.
|
java.lang.String |
toString() |
@PostConstruct public void init()
public void setAction(HealthAction action)
setAction in interface HealthActionAware@Configurable public void setTime(Period time)
time - public void beforeAction(HealthAction action, HealthService healthService)
beforeAction in interface HealthActionListenerpublic void afterAction(HealthAction action, HealthService healthService)
afterAction in interface HealthActionListenerpublic boolean isMatch(HealthEvent healthEvent)
AbstractHealthPredicateisMatch doesn't return true.isMatch in interface HealthPredicateisMatch in class AbstractHealthPredicatepublic java.lang.String toString()
toString in class AbstractHealthPredicate