|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.oddjob.schedules.schedules.BrokenSchedule
This schedule works by moving the schedule forward if the start time of the next interval falls within the next interval defined by the break. In the example below for a time of 12:00 on 24-dec-04 the logic is as follows:
<broken>
<schedule>
<time on="10:00" />
</schedule>
<breaks>
<date from="25-dec-04" to="26-dec-04" />
</breaks>
</broken>| Constructor Summary | |
BrokenSchedule()
|
|
| Method Summary | |
Schedule |
getBreaks()
Get the breaks which will break up the schedule. |
Interval |
getLimits()
Get any limits set for this schedule. |
Schedule |
getSchedule()
Get the schedule to break up. |
Interval |
nextDue(ScheduleContext context)
Implement the schedule. |
void |
setBreaks(Schedule breaks)
Set the breaks which will break up the schedule. |
void |
setLimits(Interval limits)
Specifies limits for the schedule. |
void |
setSchedule(Schedule schedule)
Set the schedule to break up. |
java.lang.String |
toString()
Provide a simple string description. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BrokenSchedule()
| Method Detail |
public void setLimits(Interval limits)
Schedule#nextDue(Date)
must be within the limits.
A repeating schedule will also use the start of the limit to calculate the boundry between intervals.
setLimits in interface Schedulelimits - The interval which bounds the schedule.public Interval getLimits()
public void setSchedule(Schedule schedule)
schedule - The schedule to break up.public Schedule getSchedule()
public void setBreaks(Schedule breaks)
breaks - The breaks schedule.public Schedule getBreaks()
public Interval nextDue(ScheduleContext context)
nextDue in interface Schedulepublic java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||