|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.health.predicate.AbstractHealthPredicate
com.caucho.health.predicate.AbstractScheduledHealthPredicate
com.caucho.health.predicate.IfCron
@Configurable public class IfCron
Matches if the current time is in an active range configured by cron-style times. This can be used both to schedule regular actions or to prevent restarts or other actions during critical times.
<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 Summary | |
|---|---|
IfCron()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class com.caucho.health.predicate.AbstractHealthPredicate |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IfCron()
| Method Detail |
|---|
@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 HealthPredicateisMatch in class AbstractScheduledHealthPredicate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||