@Configurable public class IfCron extends AbstractScheduledHealthPredicate
<health:HttpStatusHealthCheck ee:Named="httpStatusCheck">
<url>http://localhost:8080/test-ping.jsp</url>
</health:HttpStatusHealthCheck>
<health:Restart>
<health:IfHealthCritical healthCheck="${httpStatusCheck}"/>
<health:IfRechecked/>
<health:Not>
<health:IfCron>
<enable-at>0 17 * * *</enable-at>
<disable-at>0 18 * * *</disable-at>
</health:IfCron>
</health:Not>
</health:Restart>
Constructor and Description |
---|
IfCron() |
Modifier and Type | Method and Description |
---|---|
void |
init() |
boolean |
isMatch(HealthEvent healthEvent)
True if the predicate matches.
|
void |
setDisableAt(CronType disableAt)
Sets the cron disable times.
|
void |
setEnableAt(CronType enableAt)
Sets the cron enable times.
|
void |
setValue(CronType enableAt) |
toString
@Configurable public void setEnableAt(CronType enableAt)
@Configurable public void setValue(CronType enableAt)
@Configurable public void setDisableAt(CronType disableAt)
@PostConstruct public void init()
public boolean isMatch(HealthEvent healthEvent)
isMatch
in interface HealthPredicate
isMatch
in class AbstractScheduledHealthPredicate