public class DailyTimeIntervalTriggerMonthImpl extends org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger> implements DailyTimeIntervalMonthTrigger, org.quartz.impl.triggers.CoreTrigger
| 限定符和类型 | 字段和说明 |
|---|---|
private boolean |
complete |
private Set<Integer> |
daysOfMonth |
private Date |
endTime |
private org.quartz.TimeOfDay |
endTimeOfDay |
private Date |
nextFireTime |
private static int |
NUM_24 |
private static int |
NUM_31 |
private static long |
NUM_60 |
private Date |
previousFireTime |
private int |
repeatCount |
private int |
repeatInterval |
private org.quartz.DateBuilder.IntervalUnit |
repeatIntervalUnit |
private static long |
serialVersionUID |
private LocalDateTime |
startTime |
private org.quartz.TimeOfDay |
startTimeOfDay |
private int |
timesTriggered |
private static int |
YEAR_TO_GIVEUP_SCHEDULING_AT
Constants.
|
MISFIRE_INSTRUCTION_DO_NOTHING, MISFIRE_INSTRUCTION_FIRE_ONCE_NOW, REPEAT_INDEFINITELY| 构造器和说明 |
|---|
DailyTimeIntervalTriggerMonthImpl()
Create a
DailyTimeIntervalTrigger with no settings. |
DailyTimeIntervalTriggerMonthImpl(String name,
Date startTime,
Date endTime,
org.quartz.TimeOfDay startTimeOfDay,
org.quartz.TimeOfDay endTimeOfDay,
org.quartz.DateBuilder.IntervalUnit intervalUnit,
int repeatInterval)
Create a
DailyTimeIntervalTrigger that will occur at the given time,
and repeat at the the given interval until the given end time. |
DailyTimeIntervalTriggerMonthImpl(String name,
String group,
Date startTime,
Date endTime,
org.quartz.TimeOfDay startTimeOfDay,
org.quartz.TimeOfDay endTimeOfDay,
org.quartz.DateBuilder.IntervalUnit intervalUnit,
int repeatInterval)
Create a
DailyTimeIntervalTrigger that will occur at the given time,
and repeat at the the given interval until the given end time. |
DailyTimeIntervalTriggerMonthImpl(String name,
String group,
String jobName,
String jobGroup,
Date startTime,
Date endTime,
org.quartz.TimeOfDay startTimeOfDay,
org.quartz.TimeOfDay endTimeOfDay,
org.quartz.DateBuilder.IntervalUnit intervalUnit,
int repeatInterval)
Create a
DailyTimeIntervalTrigger that will occur at the given time,
fire the identified Job and repeat at the the given
interval until the given end time. |
DailyTimeIntervalTriggerMonthImpl(String name,
String group,
org.quartz.TimeOfDay startTimeOfDay,
org.quartz.TimeOfDay endTimeOfDay,
org.quartz.DateBuilder.IntervalUnit intervalUnit,
int repeatInterval)
Create a
DailyTimeIntervalTrigger that will occur immediately, and
repeat at the the given interval. |
DailyTimeIntervalTriggerMonthImpl(String name,
org.quartz.TimeOfDay startTimeOfDay,
org.quartz.TimeOfDay endTimeOfDay,
org.quartz.DateBuilder.IntervalUnit intervalUnit,
int repeatInterval)
Create a
DailyTimeIntervalTrigger that will occur immediately, and
repeat at the the given interval. |
| 限定符和类型 | 方法和说明 |
|---|---|
private Date |
advanceToNextDayOfMonthIfNecessary(Date fireTime,
boolean forceToAdvanceNextDay)
Given fireTime time determine if it is on a valid day of week.
|
Date |
computeFirstFireTime(org.quartz.Calendar calendar)
Called by the scheduler at the time a
Trigger is first
added to the scheduler, in order to have the Trigger
compute its first fire time, based on any associated calendar. |
private Calendar |
createCalendarTime(Date dateTime) |
Set<Integer> |
getDaysOfMonth()
The days of the month upon which to fire.
|
Date |
getEndTime()
Get the time at which the
DailyTimeIntervalTrigger should quit
repeating. |
org.quartz.TimeOfDay |
getEndTimeOfDay()
The time of day to complete firing at the given interval.
|
Date |
getFinalFireTime()
Returns the final time at which the
DailyTimeIntervalTrigger will
fire, if there is no end time set, null will be returned. |
Date |
getFireTimeAfter(Date afterTime)
Returns the next time at which the
DailyTimeIntervalTrigger will
fire, after the given time. |
Date |
getNextFireTime()
Returns the next time at which the
Trigger is scheduled to fire. |
Date |
getPreviousFireTime()
Returns the previous time at which the
DailyTimeIntervalTrigger
fired. |
int |
getRepeatCount()
Get the the number of times for interval this trigger should
repeat, after which it will be automatically deleted.
|
int |
getRepeatInterval()
Get the the time interval that will be added to the
DateIntervalTrigger's
fire time (in the set repeat interval unit) in order to calculate the time of the
next trigger repeat. |
org.quartz.DateBuilder.IntervalUnit |
getRepeatIntervalUnit()
Get the interval unit - the time unit on with the interval applies.
|
org.quartz.ScheduleBuilder<DailyTimeIntervalMonthTrigger> |
getScheduleBuilder()
Get a
ScheduleBuilder that is configured to produce a
schedule identical to this trigger's schedule. |
Date |
getStartTime()
Get the time at which the
DailyTimeIntervalTrigger should occur. |
org.quartz.TimeOfDay |
getStartTimeOfDay()
The time of day to start firing at the given interval.
|
int |
getTimesTriggered()
Get the number of times the
DateIntervalTrigger has already
fired. |
boolean |
hasAdditionalProperties()
This trigger has no additional properties besides what's defined in this class.
|
private boolean |
isSameDay(Date d1,
Date d2) |
boolean |
mayFireAgain()
Determines whether or not the
DailyTimeIntervalTrigger will occur
again. |
void |
setDaysOfMonth(Set<Integer> daysOfMonth) |
void |
setEndTime(Date endTime)
Set the time at which the
DailyTimeIntervalTrigger should quit
repeating (and be automatically deleted). |
void |
setEndTimeOfDay(org.quartz.TimeOfDay endTimeOfDay) |
void |
setNextFireTime(Date nextFireTime)
Set the next time at which the
DailyTimeIntervalTrigger should fire. |
void |
setPreviousFireTime(Date previousFireTime)
Set the previous time at which the
DailyTimeIntervalTrigger fired. |
void |
setRepeatCount(int repeatCount) |
void |
setRepeatInterval(int repeatInterval)
set the the time interval that will be added to the
DailyTimeIntervalTrigger's
fire time (in the set repeat interval unit) in order to calculate the time of the
next trigger repeat. |
void |
setRepeatIntervalUnit(org.quartz.DateBuilder.IntervalUnit intervalUnit)
Set the interval unit - the time unit on with the interval applies.
|
void |
setStartTime(Date startTime)
Set the time at which the
DailyTimeIntervalTrigger should occur. |
void |
setStartTimeOfDay(org.quartz.TimeOfDay startTimeOfDay) |
void |
setTimesTriggered(int timesTriggered)
Set the number of times the
DailyTimeIntervalTrigger has already
fired. |
void |
triggered(org.quartz.Calendar calendar)
Called when the
has decided to 'fire'
the trigger (execute the associated Job), in order to
give the Trigger a chance to update itself for its next
triggering (if any). |
void |
updateAfterMisfire(org.quartz.Calendar cal)
Updates the
DailyTimeIntervalTrigger's state based on the
MISFIRE_INSTRUCTION_XXX that was selected when the DailyTimeIntervalTrigger
was created. |
void |
updateWithNewCalendar(org.quartz.Calendar calendar,
long misfireThreshold) |
void |
validate()
Validates whether the properties of the
JobDetail are
valid for submission into a Scheduler. |
protected boolean |
validateMisfireInstruction(int misfireInstruction) |
clone, compareTo, equals, executionComplete, getCalendarName, getDescription, getFireInstanceId, getFullJobName, getFullName, getGroup, getJobDataMap, getJobGroup, getJobKey, getJobName, getKey, getMisfireInstruction, getName, getPriority, getTriggerBuilder, hashCode, setCalendarName, setDescription, setFireInstanceId, setGroup, setJobDataMap, setJobGroup, setJobKey, setJobName, setKey, setMisfireInstruction, setName, setPriority, toStringgetTriggerBuilderprivate static final long serialVersionUID
private static final int YEAR_TO_GIVEUP_SCHEDULING_AT
private LocalDateTime startTime
private Date endTime
private Date nextFireTime
private Date previousFireTime
private int repeatCount
private int repeatInterval
private org.quartz.DateBuilder.IntervalUnit repeatIntervalUnit
private org.quartz.TimeOfDay startTimeOfDay
private org.quartz.TimeOfDay endTimeOfDay
private int timesTriggered
private boolean complete
private static final long NUM_60
private static final int NUM_24
private static final int NUM_31
public DailyTimeIntervalTriggerMonthImpl()
Create a DailyTimeIntervalTrigger with no settings.
public DailyTimeIntervalTriggerMonthImpl(String name, org.quartz.TimeOfDay startTimeOfDay, org.quartz.TimeOfDay endTimeOfDay, org.quartz.DateBuilder.IntervalUnit intervalUnit, int repeatInterval)
Create a DailyTimeIntervalTrigger that will occur immediately, and
repeat at the the given interval.
startTimeOfDay - The TimeOfDay that the repeating should begin occurring.endTimeOfDay - The TimeOfDay that the repeating should stop occurring.intervalUnit - The repeat interval unit. The only intervals that are valid for this type of trigger are
DateBuilder.IntervalUnit#SECOND, DateBuilder.IntervalUnit#MINUTE, and DateBuilder.IntervalUnit#HOUR.IllegalArgumentException - if an invalid IntervalUnit is given, or the repeat interval is zero or less.public DailyTimeIntervalTriggerMonthImpl(String name, String group, org.quartz.TimeOfDay startTimeOfDay, org.quartz.TimeOfDay endTimeOfDay, org.quartz.DateBuilder.IntervalUnit intervalUnit, int repeatInterval)
Create a DailyTimeIntervalTrigger that will occur immediately, and
repeat at the the given interval.
startTimeOfDay - The TimeOfDay that the repeating should begin occurring.endTimeOfDay - The TimeOfDay that the repeating should stop occurring.intervalUnit - The repeat interval unit. The only intervals that are valid for this type of trigger are
DateBuilder.IntervalUnit#SECOND, DateBuilder.IntervalUnit#MINUTE, and DateBuilder.IntervalUnit#HOUR.IllegalArgumentException - if an invalid IntervalUnit is given, or the repeat interval is zero or less.public DailyTimeIntervalTriggerMonthImpl(String name, Date startTime, Date endTime, org.quartz.TimeOfDay startTimeOfDay, org.quartz.TimeOfDay endTimeOfDay, org.quartz.DateBuilder.IntervalUnit intervalUnit, int repeatInterval)
Create a DailyTimeIntervalTrigger that will occur at the given time,
and repeat at the the given interval until the given end time.
startTime - A Date set to the time for the Trigger
to fire.endTime - A Date set to the time for the Trigger
to quit repeat firing.startTimeOfDay - The TimeOfDay that the repeating should begin occurring.endTimeOfDay - The TimeOfDay that the repeating should stop occurring.intervalUnit - The repeat interval unit. The only intervals that are valid for this type of trigger are
DateBuilder.IntervalUnit#SECOND, DateBuilder.IntervalUnit#MINUTE, and DateBuilder.IntervalUnit#HOUR.repeatInterval - The number of milliseconds to pause between the repeat firing.IllegalArgumentException - if an invalid IntervalUnit is given, or the repeat interval is zero or less.public DailyTimeIntervalTriggerMonthImpl(String name, String group, Date startTime, Date endTime, org.quartz.TimeOfDay startTimeOfDay, org.quartz.TimeOfDay endTimeOfDay, org.quartz.DateBuilder.IntervalUnit intervalUnit, int repeatInterval)
Create a DailyTimeIntervalTrigger that will occur at the given time,
and repeat at the the given interval until the given end time.
startTime - A Date set to the time for the Trigger
to fire.endTime - A Date set to the time for the Trigger
to quit repeat firing.startTimeOfDay - The TimeOfDay that the repeating should begin occurring.endTimeOfDay - The TimeOfDay that the repeating should stop occurring.intervalUnit - The repeat interval unit. The only intervals that are valid for this type of trigger are
DateBuilder.IntervalUnit#SECOND, DateBuilder.IntervalUnit#MINUTE, and DateBuilder.IntervalUnit#HOUR.repeatInterval - The number of milliseconds to pause between the repeat firing.IllegalArgumentException - if an invalid IntervalUnit is given, or the repeat interval is zero or less.public DailyTimeIntervalTriggerMonthImpl(String name, String group, String jobName, String jobGroup, Date startTime, Date endTime, org.quartz.TimeOfDay startTimeOfDay, org.quartz.TimeOfDay endTimeOfDay, org.quartz.DateBuilder.IntervalUnit intervalUnit, int repeatInterval)
Create a DailyTimeIntervalTrigger that will occur at the given time,
fire the identified Job and repeat at the the given
interval until the given end time.
startTime - A Date set to the time for the Trigger
to fire.endTime - A Date set to the time for the Trigger
to quit repeat firing.startTimeOfDay - The TimeOfDay that the repeating should begin occurring.endTimeOfDay - The TimeOfDay that the repeating should stop occurring.intervalUnit - The repeat interval unit. The only intervals that are valid for this type of trigger are
DateBuilder.IntervalUnit#SECOND, DateBuilder.IntervalUnit#MINUTE, and DateBuilder.IntervalUnit#HOUR.repeatInterval - The number of milliseconds to pause between the repeat firing.IllegalArgumentException - if an invalid IntervalUnit is given, or the repeat interval is zero or less.public Date getStartTime()
Get the time at which the DailyTimeIntervalTrigger should occur. It defaults to
the getStartTimeOfDay of current day.
getStartTime 在接口中 org.quartz.TriggergetStartTime 在类中 org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>public void setStartTime(Date startTime)
Set the time at which the DailyTimeIntervalTrigger should occur.
setStartTime 在接口中 org.quartz.spi.MutableTriggersetStartTime 在类中 org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>IllegalArgumentException - if startTime is null.public Date getEndTime()
Get the time at which the DailyTimeIntervalTrigger should quit
repeating.
getEndTime 在接口中 org.quartz.TriggergetEndTime 在类中 org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>getFinalFireTime()public void setEndTime(Date endTime)
Set the time at which the DailyTimeIntervalTrigger should quit
repeating (and be automatically deleted).
setEndTime 在接口中 org.quartz.spi.MutableTriggersetEndTime 在类中 org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>IllegalArgumentException - if endTime is before start time.public org.quartz.DateBuilder.IntervalUnit getRepeatIntervalUnit()
DailyTimeIntervalMonthTriggerGet the interval unit - the time unit on with the interval applies.
The only intervals that are valid for this type of trigger are DateBuilder.IntervalUnit#SECOND,
DateBuilder.IntervalUnit#MINUTE, and DateBuilder.IntervalUnit#HOUR.
getRepeatIntervalUnit 在接口中 DailyTimeIntervalMonthTriggerDailyTimeIntervalMonthTrigger.getRepeatIntervalUnit()public void setRepeatIntervalUnit(org.quartz.DateBuilder.IntervalUnit intervalUnit)
Set the interval unit - the time unit on with the interval applies.
intervalUnit - The repeat interval unit. The only intervals that are valid for this type of trigger are
DateBuilder.IntervalUnit#SECOND, DateBuilder.IntervalUnit#MINUTE, and DateBuilder.IntervalUnit#HOUR.public int getRepeatInterval()
DailyTimeIntervalMonthTrigger
Get the the time interval that will be added to the DateIntervalTrigger's
fire time (in the set repeat interval unit) in order to calculate the time of the
next trigger repeat.
getRepeatInterval 在接口中 DailyTimeIntervalMonthTriggerDailyTimeIntervalMonthTrigger.getRepeatInterval()public void setRepeatInterval(int repeatInterval)
set the the time interval that will be added to the DailyTimeIntervalTrigger's
fire time (in the set repeat interval unit) in order to calculate the time of the
next trigger repeat.
IllegalArgumentException - if repeatInterval is < 1public int getTimesTriggered()
DailyTimeIntervalMonthTrigger
Get the number of times the DateIntervalTrigger has already
fired.
getTimesTriggered 在接口中 DailyTimeIntervalMonthTriggerDailyTimeIntervalMonthTrigger.getTimesTriggered()public void setTimesTriggered(int timesTriggered)
Set the number of times the DailyTimeIntervalTrigger has already
fired.
protected boolean validateMisfireInstruction(int misfireInstruction)
validateMisfireInstruction 在类中 org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>public void updateAfterMisfire(org.quartz.Calendar cal)
Updates the DailyTimeIntervalTrigger's state based on the
MISFIRE_INSTRUCTION_XXX that was selected when the DailyTimeIntervalTrigger
was created.
If the misfire instruction is set to MISFIRE_INSTRUCTION_SMART_POLICY,
then the following scheme will be used:
MISFIRE_INSTRUCTION_FIRE_ONCE_NOW
updateAfterMisfire 在接口中 org.quartz.spi.OperableTriggerupdateAfterMisfire 在类中 org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>public void triggered(org.quartz.Calendar calendar)
Called when the has decided to 'fire'
the trigger (execute the associated SchedulerJob), in order to
give the Trigger a chance to update itself for its next
triggering (if any).
triggered 在接口中 org.quartz.spi.OperableTriggertriggered 在类中 org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>AbstractTrigger.executionComplete(JobExecutionContext, JobExecutionException)public void updateWithNewCalendar(org.quartz.Calendar calendar,
long misfireThreshold)
updateWithNewCalendar 在接口中 org.quartz.spi.OperableTriggerupdateWithNewCalendar 在类中 org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>AbstractTrigger.updateWithNewCalendar(org.quartz.Calendar, long)public Date computeFirstFireTime(org.quartz.Calendar calendar)
Called by the scheduler at the time a Trigger is first
added to the scheduler, in order to have the Trigger
compute its first fire time, based on any associated calendar.
After this method has been called, getNextFireTime()
should return a valid answer.
computeFirstFireTime 在接口中 org.quartz.spi.OperableTriggercomputeFirstFireTime 在类中 org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>Trigger will be fired
by the scheduler, which is also the same value getNextFireTime()
will return (until after the first firing of the Trigger).
public Date getNextFireTime()
Returns the next time at which the Trigger is scheduled to fire. If
the trigger will not fire again, null will be returned. Note that
the time returned can possibly be in the past, if the time that was computed
for the trigger to next fire has already arrived, but the scheduler has not yet
been able to fire the trigger (which would likely be due to lack of resources
e.g. threads).
The value returned is not guaranteed to be valid until after the Trigger
has been added to the scheduler.
getNextFireTime 在接口中 org.quartz.TriggergetNextFireTime 在类中 org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>public Date getPreviousFireTime()
Returns the previous time at which the DailyTimeIntervalTrigger
fired. If the trigger has not yet fired, null will be
returned.
getPreviousFireTime 在接口中 org.quartz.TriggergetPreviousFireTime 在类中 org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>public void setNextFireTime(Date nextFireTime)
Set the next time at which the DailyTimeIntervalTrigger should fire.
This method should not be invoked by client code.
setNextFireTime 在接口中 org.quartz.spi.OperableTriggerpublic void setPreviousFireTime(Date previousFireTime)
Set the previous time at which the DailyTimeIntervalTrigger fired.
This method should not be invoked by client code.
setPreviousFireTime 在接口中 org.quartz.spi.OperableTriggerpublic Date getFireTimeAfter(Date afterTime)
Returns the next time at which the DailyTimeIntervalTrigger will
fire, after the given time. If the trigger will not fire after the given
time, null will be returned.
getFireTimeAfter 在接口中 org.quartz.TriggergetFireTimeAfter 在类中 org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>private Date advanceToNextDayOfMonthIfNecessary(Date fireTime, boolean forceToAdvanceNextDay)
fireTime - - given next fireTime.forceToAdvanceNextDay - - flag to whether to advance day without check existing week day. This scenario
can happen when a caller determine fireTime has passed the endTimeOfDay that fireTime should move to next day anyway.public Date getFinalFireTime()
Returns the final time at which the DailyTimeIntervalTrigger will
fire, if there is no end time set, null will be returned.
Note that the return time may be in the past.
getFinalFireTime 在接口中 org.quartz.TriggergetFinalFireTime 在类中 org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>public boolean mayFireAgain()
Determines whether or not the DailyTimeIntervalTrigger will occur
again.
mayFireAgain 在接口中 org.quartz.TriggermayFireAgain 在类中 org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>public void validate()
throws org.quartz.SchedulerException
Validates whether the properties of the JobDetail are
valid for submission into a Scheduler.
validate 在接口中 org.quartz.spi.OperableTriggervalidate 在类中 org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>IllegalStateException - if a required property (such as Name, Group, Class) is not
set.org.quartz.SchedulerExceptionpublic Set<Integer> getDaysOfMonth()
getDaysOfMonth 在接口中 DailyTimeIntervalMonthTriggerpublic org.quartz.TimeOfDay getStartTimeOfDay()
getStartTimeOfDay 在接口中 DailyTimeIntervalMonthTriggerpublic void setStartTimeOfDay(org.quartz.TimeOfDay startTimeOfDay)
public org.quartz.TimeOfDay getEndTimeOfDay()
getEndTimeOfDay 在接口中 DailyTimeIntervalMonthTriggerpublic void setEndTimeOfDay(org.quartz.TimeOfDay endTimeOfDay)
public org.quartz.ScheduleBuilder<DailyTimeIntervalMonthTrigger> getScheduleBuilder()
ScheduleBuilder that is configured to produce a
schedule identical to this trigger's schedule.getScheduleBuilder 在接口中 org.quartz.TriggergetScheduleBuilder 在类中 org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>AbstractTrigger.getTriggerBuilder()public boolean hasAdditionalProperties()
hasAdditionalProperties 在接口中 org.quartz.impl.triggers.CoreTriggerpublic int getRepeatCount()
DailyTimeIntervalMonthTriggerGet the the number of times for interval this trigger should repeat, after which it will be automatically deleted.
getRepeatCount 在接口中 DailyTimeIntervalMonthTriggerDailyTimeIntervalMonthTrigger.REPEAT_INDEFINITELYpublic void setRepeatCount(int repeatCount)
Copyright © 2024. All rights reserved.