|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.oddjob.schedules.AbstractSchedule
org.oddjob.schedules.schedules.DayAfterSchedule
This is designed to be used for processing which happens the day after, i.e. processing previous business days data.
This is paticularly useful for scheduling around holidays when a process is still required to run on the holiday, but not the day after the holiday.
<dayafter>
<dayofmonth from="25" to="0" >
<last>
<dayofweek from="mon" to="fri" >
<time on="02:00" /gt;
</dayofweek>
</last>h;
</dayofmonth>
</dayafter>
| Constructor Summary | |
DayAfterSchedule()
|
|
| Method Summary | |
Interval |
nextDue(ScheduleContext context)
For a given date a schedule will provide the interval this schedule should next be scheduled in. |
java.lang.String |
toString()
Override toString. |
| Methods inherited from class org.oddjob.schedules.AbstractSchedule |
addValueSchedule, getChildSchedule, getLimits, setChildSchedule, setLimits |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DayAfterSchedule()
| Method Detail |
public Interval nextDue(ScheduleContext context)
ScheduleIf the schedule is never due again for the given date, null is returned.
nextDue in interface Schedulepublic java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||