Class QuartzSchedulerAvailability
- java.lang.Object
-
- org.quartz.impl.calendar.BaseCalendar
-
- org.pentaho.platform.scheduler2.quartz.QuartzSchedulerAvailability
-
- All Implemented Interfaces:
Serializable
,Cloneable
,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
-
-
Constructor Summary
Constructors Constructor Description QuartzSchedulerAvailability(Date startTime, Date endTime)
Creates a quartz calender which is used to indicate when a trigger is allowed to fire.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getEndTime()
long
getNextIncludedTime(long arg0)
Date
getStartTime()
boolean
isTimeIncluded(long arg0)
-
-
-
Constructor Detail
-
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.
-
-
Method Detail
-
getNextIncludedTime
public long getNextIncludedTime(long arg0)
- Specified by:
getNextIncludedTime
in interfaceorg.quartz.Calendar
- Overrides:
getNextIncludedTime
in classorg.quartz.impl.calendar.BaseCalendar
-
isTimeIncluded
public boolean isTimeIncluded(long arg0)
- Specified by:
isTimeIncluded
in interfaceorg.quartz.Calendar
- Overrides:
isTimeIncluded
in classorg.quartz.impl.calendar.BaseCalendar
-
getStartTime
public Date getStartTime()
-
getEndTime
public Date getEndTime()
-
-