| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TriggerListener
The interface to be implemented by classes that want to be informed when a
 TriggerScheduler will not have use for this mechanism.
Scheduler#addTriggerListener(TriggerListener, Matcher), 
Matcher, 
Trigger, 
JobListener, 
JobExecutionContext| Method Summary | |
|---|---|
|  java.lang.String | getName()Get the name of the TriggerListener. | 
|  void | triggerComplete(Trigger trigger,
                JobExecutionContext context,
                Trigger.CompletedExecutionInstruction triggerInstructionCode)Called by the when ahas fired, it's associatedhas been executed, and it'striggered(xx)method has been
 called. | 
|  void | triggerFired(Trigger trigger,
             JobExecutionContext context)Called by the when ahas fired, and it's associatedis about to be executed. | 
|  void | triggerMisfired(Trigger trigger)Called by the when ahas misfired. | 
|  boolean | vetoJobExecution(Trigger trigger,
                 JobExecutionContext context)Called by the when ahas fired, and it's associatedis about to be executed. | 
| Method Detail | 
|---|
java.lang.String getName()
 Get the name of the TriggerListener.
 
void triggerFired(Trigger trigger,
                  JobExecutionContext context)
 Called by the SchedulerTriggerJobDetail
 It is called before the vetoJobExecution(..) method of this
 interface.
 
trigger - The Trigger that has fired.context - The JobExecutionContext that will be passed to
          the Job'sexecute(xx) method.
boolean vetoJobExecution(Trigger trigger,
                         JobExecutionContext context)
 Called by the SchedulerTriggerJobDetailtrue), the job's execute method will not be called.
 
 It is called after the triggerFired(..) method of this
 interface.
 
trigger - The Trigger that has fired.context - The JobExecutionContext that will be passed to
          the Job'sexecute(xx) method.void triggerMisfired(Trigger trigger)
 Called by the SchedulerTrigger
Consideration should be given to how much time is spent in this method, as it will affect all triggers that are misfiring. If you have lots of triggers misfiring at once, it could be an issue it this method does a lot.
trigger - The Trigger that has misfired.
void triggerComplete(Trigger trigger,
                     JobExecutionContext context,
                     Trigger.CompletedExecutionInstruction triggerInstructionCode)
 Called by the SchedulerTriggerJobDetailtriggered(xx) method has been
 called.
 
trigger - The Trigger that was fired.context - The JobExecutionContext that was passed to the
          Job'sexecute(xx) method.triggerInstructionCode - the result of the call on the Trigger'striggered(xx)
          method.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||