org.pentaho.platform.scheduler2.quartz
Class QuartzSchedulerAvailability
java.lang.Object
org.quartz.impl.calendar.BaseCalendar
org.pentaho.platform.scheduler2.quartz.QuartzSchedulerAvailability
- All Implemented Interfaces:
- Serializable, org.quartz.Calendar
public class QuartzSchedulerAvailability
- extends org.quartz.impl.calendar.BaseCalendar
Implementation of a Quartz calendar. Note that unlike typical Quartz calendars in which you specify
when the trigger is not allowed to fire, when constructing this calendar you specify when the trigger
is allowed to fire.
- Author:
- arodriguez
- See Also:
- Serialized Form
Fields inherited from interface org.quartz.Calendar |
MONTH |
Methods inherited from class org.quartz.impl.calendar.BaseCalendar |
buildHoliday, buildHoliday, getBaseCalendar, getDescription, getJavaCalendar, setBaseCalendar, setDescription |
QuartzSchedulerAvailability
public QuartzSchedulerAvailability(Date startTime,
Date endTime)
- Creates a quartz calender which is used to indicate when a trigger is allowed to fire. The
trigger will be allowed to fire between the start date and end date.
- Parameters:
startTime
- the earliest time at which the trigger may fire. If null the trigger may
fire immediately.endTime
- the last date at which the trigger may fire. If null the trigger may fire indefinitely.
getNextIncludedTime
public long getNextIncludedTime(long arg0)
-
- Specified by:
getNextIncludedTime
in interface org.quartz.Calendar
- Overrides:
getNextIncludedTime
in class org.quartz.impl.calendar.BaseCalendar
isTimeIncluded
public boolean isTimeIncluded(long arg0)
-
- Specified by:
isTimeIncluded
in interface org.quartz.Calendar
- Overrides:
isTimeIncluded
in class org.quartz.impl.calendar.BaseCalendar
getStartTime
public Date getStartTime()
getEndTime
public Date getEndTime()