Interface OperableTrigger
- All Superinterfaces:
Cloneable
,Comparable<Trigger>
,MutableTrigger
,Serializable
,Trigger
- All Known Implementing Classes:
AbstractTrigger
,CronTriggerImpl
,SimpleTriggerImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.quartz.triggers.Trigger
Trigger.CompletedExecutionInstruction, Trigger.TriggerTimeComparator
-
Field Summary
Fields inherited from interface org.quartz.triggers.Trigger
DEFAULT_PRIORITY, MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY, MISFIRE_INSTRUCTION_SMART_POLICY
-
Method Summary
Modifier and TypeMethodDescriptioncomputeFirstFireTime
(Calendar calendar) This method should not be used by the Quartz client.executionComplete
(JobExecutionContext context, JobExecutionException result) This method should not be used by the Quartz client.This method should not be used by the Quartz client.void
This method should not be used by the Quartz client.void
setNextFireTime
(Date nextFireTime) void
setPreviousFireTime
(Date previousFireTime) void
This method should not be used by the Quartz client.void
This method should not be used by the Quartz client.void
validate()
Validates whether the properties of theJobDetail
are valid for submission into aScheduler
.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.quartz.triggers.MutableTrigger
clone, setCalendarName, setDescription, setEndTime, setJobDataMap, setJobName, setMisfireInstruction, setName, setPriority, setStartTime
Methods inherited from interface org.quartz.triggers.Trigger
equals, getCalendarName, getDescription, getEndTime, getFinalFireTime, getFireTimeAfter, getJobDataMap, getJobName, getMisfireInstruction, getName, getNextFireTime, getPreviousFireTime, getPriority, getStartTime, mayFireAgain
-
Method Details
-
triggered
This method should not be used by the Quartz client.Called when the
has decided to 'fire' the trigger (execute the associatedScheduler
Job
), in order to give theTrigger
a chance to update itself for its next triggering (if any). -
computeFirstFireTime
This method should not be used by the Quartz client.Called by the scheduler at the time a
Trigger
is first added to the scheduler, in order to have theTrigger
compute its first fire time, based on any associated calendar.After this method has been called,
getNextFireTime()
should return a valid answer.- Returns:
- the first time at which the
Trigger
will be fired by the scheduler, which is also the same valuegetNextFireTime()
will return (until after the first firing of theTrigger
).
-
executionComplete
Trigger.CompletedExecutionInstruction executionComplete(JobExecutionContext context, JobExecutionException result) This method should not be used by the Quartz client.Called after the
has executed theScheduler
JobDetail
Trigger
in order to get the final instruction code from the trigger.- Parameters:
context
- is theJobExecutionContext
that was used by theJob
'sexecute(xx)
method.result
- is theJobExecutionException
thrown by theJob
, if any (may be null).- Returns:
- one of the
CompletedExecutionInstruction
constants. - See Also:
-
updateAfterMisfire
This method should not be used by the Quartz client.To be implemented by the concrete classes that extend this class.
The implementation should update the
Trigger
's state based on the MISFIRE_INSTRUCTION_XXX that was selected when theTrigger
was created. -
validate
Validates whether the properties of theJobDetail
are valid for submission into aScheduler
.- Throws:
IllegalStateException
- if a required property (such as Name, Group, Class) is not set.SchedulerException
-
setFireInstanceId
This method should not be used by the Quartz client.Usable by
implementations, in order to facilitate 'recognizing' instances of firedJobStore
Trigger
s as their jobs complete execution. -
getFireInstanceId
String getFireInstanceId()This method should not be used by the Quartz client. -
setNextFireTime
-
setPreviousFireTime
-