@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 HealthActionListener
public void afterAction(HealthAction action, HealthService healthService)
afterAction
in interface HealthActionListener
public boolean isMatch(HealthEvent healthEvent)
AbstractHealthPredicate
isMatch
doesn't return true.isMatch
in interface HealthPredicate
isMatch
in class AbstractHealthPredicate
public java.lang.String toString()
toString
in class AbstractHealthPredicate