|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.quartz.core.QuartzScheduler
This is the heart of Quartz, an indirect implementation of the
interface, containing methods to
schedule Schedulers, register
Job instances, etc.JobListener
Scheduler,
QuartzSchedulerThread,
JobStore,
ThreadPool| Field Summary | |
static java.lang.String |
VERSION_ITERATION
|
static java.lang.String |
VERSION_MAJOR
|
static java.lang.String |
VERSION_MINOR
|
| Constructor Summary | |
QuartzScheduler(QuartzSchedulerResources resources,
SchedulingContext ctxt,
long idleWaitTime)
Create a QuartzScheduler with the given configuration
properties. |
|
| Method Summary | |
void |
addCalendar(SchedulingContext ctxt,
java.lang.String calName,
Calendar calendar,
boolean replace)
Add (register) the given Calendar to the Scheduler. |
void |
addGlobalJobListener(JobListener jobListener)
Add the given to the
Scheduler's global list. |
void |
addGlobalTriggerListener(TriggerListener triggerListener)
Add the given to the
Scheduler's global list. |
void |
addJob(SchedulingContext ctxt,
JobDetail jobDetail,
boolean replace)
Add the given Job to the Scheduler - with no associated
Trigger. |
void |
addJobListener(JobListener jobListener)
Add the given to the
Scheduler's list, of registered JobListeners. |
void |
addNoGCObject(java.lang.Object obj)
|
void |
addSchedulerListener(SchedulerListener schedulerListener)
Register the given with the
Scheduler. |
void |
addSchedulerPlugin(SchedulerPlugin plugin)
Add the given to
the Scheduler. |
void |
addTriggerListener(TriggerListener triggerListener)
Add the given to the
Scheduler's list, of registered TriggerListeners. |
boolean |
deleteCalendar(SchedulingContext ctxt,
java.lang.String calName)
Delete the identified Calendar from the Scheduler. |
boolean |
deleteJob(SchedulingContext ctxt,
java.lang.String jobName,
java.lang.String groupName)
Delete the identified Job from the Scheduler - and any
associated Triggers. |
Calendar |
getCalendar(SchedulingContext ctxt,
java.lang.String calName)
Get the instance with the given
name. |
java.lang.String[] |
getCalendarNames(SchedulingContext ctxt)
Get the names of all registered . |
java.util.List |
getCurrentlyExecutingJobs()
Return a list of JobExecutionContext objects that
represent all currently executing Jobs. |
java.util.List |
getGlobalJobListeners()
Get a List containing all of the s in the
Scheduler's global list. |
java.util.List |
getGlobalTriggerListeners()
Get a list containing all of the s in the
Scheduler's global list. |
JobDetail |
getJobDetail(SchedulingContext ctxt,
java.lang.String jobName,
java.lang.String jobGroup)
Get the for the Job
instance with the given name and group. |
java.lang.String[] |
getJobGroupNames(SchedulingContext ctxt)
Get the names of all known
groups. |
JobListener |
getJobListener(java.lang.String name)
Get the non-global
that has the given name. |
java.util.Set |
getJobListenerNames()
Get a Set containing the names of all the non-global s registered with the
Scheduler. |
java.lang.String[] |
getJobNames(SchedulingContext ctxt,
java.lang.String groupName)
Get the names of all the in the
given group. |
java.lang.Class |
getJobStoreClass()
|
static org.apache.commons.logging.Log |
getLog()
|
SchedulerContext |
getSchedulerContext()
Returns the SchedulerContext of the
Scheduler. |
java.lang.String |
getSchedulerInstanceId()
Returns the instance Id of the QuartzScheduler. |
java.util.List |
getSchedulerListeners()
Get a List containing all of the s
registered with the Scheduler. |
java.lang.String |
getSchedulerName()
Returns the name of the QuartzScheduler. |
SchedulerSignaler |
getSchedulerSignaler()
|
java.lang.ThreadGroup |
getSchedulerThreadGroup()
Returns the name of the QuartzScheduler. |
java.lang.Class |
getThreadPoolClass()
|
int |
getThreadPoolSize()
|
Trigger |
getTrigger(SchedulingContext ctxt,
java.lang.String triggerName,
java.lang.String triggerGroup)
Get the instance with the given
name and group. |
java.lang.String[] |
getTriggerGroupNames(SchedulingContext ctxt)
Get the names of all known
groups. |
TriggerListener |
getTriggerListener(java.lang.String name)
Get the non-global that has the given
name. |
java.util.Set |
getTriggerListenerNames()
Get a Set containing the names of all the non-global s registered with the
Scheduler. |
java.lang.String[] |
getTriggerNames(SchedulingContext ctxt,
java.lang.String groupName)
Get the names of all the in
the given group. |
Trigger[] |
getTriggersOfJob(SchedulingContext ctxt,
java.lang.String jobName,
java.lang.String groupName)
Get all s that are associated with the
identified . |
int |
getTriggerState(SchedulingContext ctxt,
java.lang.String triggerName,
java.lang.String triggerGroup)
Get the current state of the identified . |
java.lang.String |
getVersion()
|
java.lang.String |
getVersionIteration()
|
java.lang.String |
getVersionMajor()
|
java.lang.String |
getVersionMinor()
|
boolean |
isPaused()
Reports whether the Scheduler is paused. |
boolean |
isShutdown()
Reports whether the Scheduler has been shutdown. |
void |
notifyJobListenersToBeExecuted(JobExecutionContext jec)
|
void |
notifyJobListenersWasExecuted(JobExecutionContext jec,
JobExecutionException je)
|
protected void |
notifyJobStoreJobComplete(SchedulingContext ctxt,
Trigger trigger,
JobDetail detail,
int instCode)
|
void |
notifySchedulerListenersError(java.lang.String msg,
SchedulerException se)
|
void |
notifySchedulerListenersFinalized(Trigger trigger)
|
void |
notifySchedulerListenersPausedJob(java.lang.String name,
java.lang.String group)
|
void |
notifySchedulerListenersPausedTrigger(java.lang.String name,
java.lang.String group)
|
void |
notifySchedulerListenersResumedJob(java.lang.String name,
java.lang.String group)
|
void |
notifySchedulerListenersResumedTrigger(java.lang.String name,
java.lang.String group)
|
void |
notifySchedulerListenersSchduled(Trigger trigger)
|
void |
notifySchedulerListenersShutdown()
|
void |
notifySchedulerListenersUnschduled(java.lang.String triggerName,
java.lang.String triggerGroup)
|
protected void |
notifySchedulerThread()
|
void |
notifyTriggerListenersComplete(JobExecutionContext jec,
int instCode)
|
void |
notifyTriggerListenersFired(JobExecutionContext jec)
|
void |
notifyTriggerListenersMisfired(Trigger trigger)
|
int |
numJobsExecuted()
|
void |
pause()
Temporarily halts the QuartzScheduler's firing of
. |
void |
pauseAll(SchedulingContext ctxt)
Pause all triggers - equivalent of calling pauseTriggerGroup(group) on every group. |
void |
pauseJob(SchedulingContext ctxt,
java.lang.String jobName,
java.lang.String groupName)
Pause the with the given name - by pausing
all of its current Triggers. |
void |
pauseJobGroup(SchedulingContext ctxt,
java.lang.String groupName)
Pause all of the in the given group - by
pausing all of their Triggers. |
void |
pauseTrigger(SchedulingContext ctxt,
java.lang.String triggerName,
java.lang.String groupName)
Pause the with the given name. |
void |
pauseTriggerGroup(SchedulingContext ctxt,
java.lang.String groupName)
Pause all of the in the given group. |
boolean |
removeGlobalJobListener(JobListener jobListener)
Remove the given from the
Scheduler's list of global listeners. |
boolean |
removeGlobalTriggerListener(TriggerListener triggerListener)
Remove the given from
the Scheduler's list of global listeners. |
boolean |
removeJobListener(java.lang.String name)
Remove the identifed from
the Scheduler's list of registered listeners. |
boolean |
removeNoGCObject(java.lang.Object obj)
|
boolean |
removeSchedulerListener(SchedulerListener schedulerListener)
Remove the given from the
Scheduler. |
boolean |
removeTriggerListener(java.lang.String name)
Remove the identifed
from the Scheduler's list of registered listeners. |
void |
resumeAll(SchedulingContext ctxt)
Resume (un-pause) all triggers - equivalent of calling resumeTriggerGroup(group) on every group. |
void |
resumeJob(SchedulingContext ctxt,
java.lang.String jobName,
java.lang.String groupName)
Resume (un-pause) the with the given
name. |
void |
resumeJobGroup(SchedulingContext ctxt,
java.lang.String groupName)
Resume (un-pause) all of the in the given
group. |
void |
resumeTrigger(SchedulingContext ctxt,
java.lang.String triggerName,
java.lang.String groupName)
Resume (un-pause) the with the given
name. |
void |
resumeTriggerGroup(SchedulingContext ctxt,
java.lang.String groupName)
Resume (un-pause) all of the in the given
group. |
java.util.Date |
runningSince()
|
java.util.Date |
scheduleJob(SchedulingContext ctxt,
JobDetail jobDetail,
Trigger trigger)
Add the identified by the given
to the Scheduler, and associate
the given with it. |
java.util.Date |
scheduleJob(SchedulingContext ctxt,
Trigger trigger)
Schedule the given with the
Job identified by the Trigger's settings. |
void |
shutdown()
Halts the QuartzScheduler's firing of
, and cleans up all resources
associated with the QuartzScheduler. |
void |
shutdown(boolean waitForJobsToComplete)
Halts the QuartzScheduler's firing of
, and cleans up all resources
associated with the QuartzScheduler. |
void |
start()
Starts the QuartzScheduler's threads that fire
. |
boolean |
supportsPersistence()
|
void |
triggerJob(SchedulingContext ctxt,
java.lang.String jobName,
java.lang.String groupName)
Trigger the identified (execute it
now) - with a non-volatile trigger. |
void |
triggerJobWithVolatileTrigger(SchedulingContext ctxt,
java.lang.String jobName,
java.lang.String groupName)
Trigger the identified (execute it
now) - with a volatile trigger. |
boolean |
unscheduleJob(SchedulingContext ctxt,
java.lang.String triggerName,
java.lang.String groupName)
Remove the indicated from the
scheduler. |
void |
validateState()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String VERSION_MAJOR
public static final java.lang.String VERSION_MINOR
public static final java.lang.String VERSION_ITERATION
| Constructor Detail |
public QuartzScheduler(QuartzSchedulerResources resources,
SchedulingContext ctxt,
long idleWaitTime)
throws SchedulerException
Create a QuartzScheduler with the given configuration
properties.
QuartzSchedulerResources| Method Detail |
public java.lang.String getVersion()
getVersion in interface RemotableQuartzSchedulerpublic java.lang.String getVersionMajor()
public java.lang.String getVersionMinor()
public java.lang.String getVersionIteration()
public SchedulerSignaler getSchedulerSignaler()
public static org.apache.commons.logging.Log getLog()
public java.lang.String getSchedulerName()
Returns the name of the QuartzScheduler.
getSchedulerName in interface RemotableQuartzSchedulerpublic java.lang.String getSchedulerInstanceId()
Returns the instance Id of the QuartzScheduler.
getSchedulerInstanceId in interface RemotableQuartzSchedulerpublic java.lang.ThreadGroup getSchedulerThreadGroup()
Returns the name of the QuartzScheduler.
public void addNoGCObject(java.lang.Object obj)
public boolean removeNoGCObject(java.lang.Object obj)
public SchedulerContext getSchedulerContext()
throws SchedulerException
Returns the SchedulerContext of the
Scheduler.
getSchedulerContext in interface RemotableQuartzSchedulerSchedulerException
public void start()
throws SchedulerException
Starts the QuartzScheduler's threads that fire
.Triggers
All that have misfired will
be passed to the appropriate TriggerListener(s).Triggers
start in interface RemotableQuartzSchedulerSchedulerExceptionpublic void pause()
Temporarily halts the QuartzScheduler's firing of
.Triggers
The scheduler is not destroyed, and can be re-started at any time.
pause in interface RemotableQuartzSchedulerpublic boolean isPaused()
Reports whether the Scheduler is paused.
isPaused in interface RemotableQuartzSchedulerpublic java.util.Date runningSince()
runningSince in interface RemotableQuartzSchedulerpublic int numJobsExecuted()
numJobsExecuted in interface RemotableQuartzSchedulerpublic java.lang.Class getJobStoreClass()
getJobStoreClass in interface RemotableQuartzSchedulerpublic boolean supportsPersistence()
supportsPersistence in interface RemotableQuartzSchedulerpublic java.lang.Class getThreadPoolClass()
getThreadPoolClass in interface RemotableQuartzSchedulerpublic int getThreadPoolSize()
getThreadPoolSize in interface RemotableQuartzSchedulerpublic void shutdown()
Halts the QuartzScheduler's firing of
, and cleans up all resources
associated with the QuartzScheduler. Equivalent to
Triggersshutdown(false).
The scheduler cannot be re-started.
shutdown in interface RemotableQuartzSchedulerpublic void shutdown(boolean waitForJobsToComplete)
Halts the QuartzScheduler's firing of
, and cleans up all resources
associated with the QuartzScheduler.Triggers
The scheduler cannot be re-started.
shutdown in interface RemotableQuartzSchedulerwaitForJobsToComplete - if true the scheduler will not
allow this method to return until all currently executing jobs have
completed.public boolean isShutdown()
Reports whether the Scheduler has been shutdown.
isShutdown in interface RemotableQuartzScheduler
public void validateState()
throws SchedulerException
SchedulerExceptionpublic java.util.List getCurrentlyExecutingJobs()
Return a list of JobExecutionContext objects that
represent all currently executing Jobs.
Note that the list returned is an 'instantaneous' snap-shot, and that as soon as it's returned, the true list of executing jobs may be different.
getCurrentlyExecutingJobs in interface RemotableQuartzScheduler
public java.util.Date scheduleJob(SchedulingContext ctxt,
JobDetail jobDetail,
Trigger trigger)
throws SchedulerException
Add the identified by the given
Job to the Scheduler, and associate
the given JobDetail with it.Trigger
If the given Trigger does not reference any Job, then it
will be set to reference the Job passed with it into this method.
scheduleJob in interface RemotableQuartzSchedulerSchedulerException - if the Job or Trigger cannot be added to the
Scheduler, or there is an internal Scheduler error.
public java.util.Date scheduleJob(SchedulingContext ctxt,
Trigger trigger)
throws SchedulerException
Schedule the given with the
TriggerJob identified by the Trigger's settings.
scheduleJob in interface RemotableQuartzSchedulerSchedulerException - if the indicated Job does not exist, or the
Trigger cannot be added to the Scheduler, or there is an internal
Scheduler error.
public void addJob(SchedulingContext ctxt,
JobDetail jobDetail,
boolean replace)
throws SchedulerException
Add the given Job to the Scheduler - with no associated
Trigger. The Job will be 'dormant' until it is
scheduled with a Trigger, or
Scheduler.triggerJob() is called for it.
The Job must by definition be 'durable', if it is not,
SchedulerException will be thrown.
addJob in interface RemotableQuartzSchedulerSchedulerException - if there is an internal Scheduler error, or if
the Job is not durable, or a Job with the same name already exists, and
replace is false.
public boolean deleteJob(SchedulingContext ctxt,
java.lang.String jobName,
java.lang.String groupName)
throws SchedulerException
Delete the identified Job from the Scheduler - and any
associated Triggers.
deleteJob in interface RemotableQuartzSchedulerSchedulerException - if there is an internal Scheduler error.
public boolean unscheduleJob(SchedulingContext ctxt,
java.lang.String triggerName,
java.lang.String groupName)
throws SchedulerException
Remove the indicated from the
scheduler.Trigger
unscheduleJob in interface RemotableQuartzSchedulerSchedulerException
public void triggerJob(SchedulingContext ctxt,
java.lang.String jobName,
java.lang.String groupName)
throws SchedulerException
Trigger the identified (execute it
now) - with a non-volatile trigger.Job
triggerJob in interface RemotableQuartzSchedulerSchedulerException
public void triggerJobWithVolatileTrigger(SchedulingContext ctxt,
java.lang.String jobName,
java.lang.String groupName)
throws SchedulerException
Trigger the identified (execute it
now) - with a volatile trigger.Job
triggerJobWithVolatileTrigger in interface RemotableQuartzSchedulerSchedulerException
public void pauseTrigger(SchedulingContext ctxt,
java.lang.String triggerName,
java.lang.String groupName)
throws SchedulerException
Pause the with the given name.Trigger
pauseTrigger in interface RemotableQuartzSchedulerSchedulerException
public void pauseTriggerGroup(SchedulingContext ctxt,
java.lang.String groupName)
throws SchedulerException
Pause all of the in the given group.Triggers
pauseTriggerGroup in interface RemotableQuartzSchedulerSchedulerException
public void pauseJob(SchedulingContext ctxt,
java.lang.String jobName,
java.lang.String groupName)
throws SchedulerException
Pause the with the given name - by pausing
all of its current JobDetailTriggers.
pauseJob in interface RemotableQuartzSchedulerSchedulerException
public void pauseJobGroup(SchedulingContext ctxt,
java.lang.String groupName)
throws SchedulerException
Pause all of the in the given group - by
pausing all of their JobDetailsTriggers.
pauseJobGroup in interface RemotableQuartzSchedulerSchedulerException
public void resumeTrigger(SchedulingContext ctxt,
java.lang.String triggerName,
java.lang.String groupName)
throws SchedulerException
Resume (un-pause) the with the given
name.Trigger
If the Trigger missed one or more fire-times, then the
Trigger's misfire instruction will be applied.
resumeTrigger in interface RemotableQuartzSchedulerSchedulerException
public void resumeTriggerGroup(SchedulingContext ctxt,
java.lang.String groupName)
throws SchedulerException
Resume (un-pause) all of the in the given
group.Triggers
If any Trigger missed one or more fire-times, then the
Trigger's misfire instruction will be applied.
resumeTriggerGroup in interface RemotableQuartzSchedulerSchedulerException
public void resumeJob(SchedulingContext ctxt,
java.lang.String jobName,
java.lang.String groupName)
throws SchedulerException
Resume (un-pause) the with the given
name.JobDetail
If any of the Job's Triggers missed one or
more fire-times, then the Trigger's misfire instruction will
be applied.
resumeJob in interface RemotableQuartzSchedulerSchedulerException
public void resumeJobGroup(SchedulingContext ctxt,
java.lang.String groupName)
throws SchedulerException
Resume (un-pause) all of the in the given
group.JobDetails
If any of the Jobs had Triggers that missed
one or more fire-times, then the Trigger's misfire
instruction will be applied.
resumeJobGroup in interface RemotableQuartzSchedulerSchedulerException
public void pauseAll(SchedulingContext ctxt)
throws SchedulerException
Pause all triggers - equivalent of calling
pauseTriggerGroup(group) on every group.
When resumeAll() is called (to un-pause), trigger misfire
instructions WILL be applied.
pauseAll in interface RemotableQuartzSchedulerSchedulerExceptionresumeAll(SchedulingContext),
pauseTriggerGroup(SchedulingContext, String),
pause()
public void resumeAll(SchedulingContext ctxt)
throws SchedulerException
Resume (un-pause) all triggers - equivalent of calling
resumeTriggerGroup(group) on every group.
If any Trigger missed one or more fire-times, then the
Trigger's misfire instruction will be applied.
resumeAll in interface RemotableQuartzSchedulerSchedulerExceptionpauseAll(SchedulingContext)
public java.lang.String[] getJobGroupNames(SchedulingContext ctxt)
throws SchedulerException
Get the names of all known
groups.Job
getJobGroupNames in interface RemotableQuartzSchedulerSchedulerException
public java.lang.String[] getJobNames(SchedulingContext ctxt,
java.lang.String groupName)
throws SchedulerException
Get the names of all the in the
given group.Jobs
getJobNames in interface RemotableQuartzSchedulerSchedulerException
public Trigger[] getTriggersOfJob(SchedulingContext ctxt,
java.lang.String jobName,
java.lang.String groupName)
throws SchedulerException
Get all s that are associated with the
identified Trigger.JobDetail
getTriggersOfJob in interface RemotableQuartzSchedulerSchedulerException
public java.lang.String[] getTriggerGroupNames(SchedulingContext ctxt)
throws SchedulerException
Get the names of all known
groups.Trigger
getTriggerGroupNames in interface RemotableQuartzSchedulerSchedulerException
public java.lang.String[] getTriggerNames(SchedulingContext ctxt,
java.lang.String groupName)
throws SchedulerException
Get the names of all the in
the given group.Triggers
getTriggerNames in interface RemotableQuartzSchedulerSchedulerException
public JobDetail getJobDetail(SchedulingContext ctxt,
java.lang.String jobName,
java.lang.String jobGroup)
throws SchedulerException
Get the for the JobDetailJob
instance with the given name and group.
getJobDetail in interface RemotableQuartzSchedulerSchedulerException
public Trigger getTrigger(SchedulingContext ctxt,
java.lang.String triggerName,
java.lang.String triggerGroup)
throws SchedulerException
Get the instance with the given
name and group.Trigger
getTrigger in interface RemotableQuartzSchedulerSchedulerException
public int getTriggerState(SchedulingContext ctxt,
java.lang.String triggerName,
java.lang.String triggerGroup)
throws SchedulerException
Get the current state of the identified
.Trigger
getTriggerState in interface RemotableQuartzSchedulerSchedulerExceptionTrigger.STATE_NORMAL,
Trigger.STATE_PAUSED,
Trigger.STATE_COMPLETE,
Trigger.STATE_ERROR
public void addCalendar(SchedulingContext ctxt,
java.lang.String calName,
Calendar calendar,
boolean replace)
throws SchedulerException
Add (register) the given Calendar to the Scheduler.
addCalendar in interface RemotableQuartzSchedulerSchedulerException - if there is an internal Scheduler error, or
a Calendar with the same name already exists, and replace is
false.
public boolean deleteCalendar(SchedulingContext ctxt,
java.lang.String calName)
throws SchedulerException
Delete the identified Calendar from the Scheduler.
deleteCalendar in interface RemotableQuartzSchedulerSchedulerException - if there is an internal Scheduler error.
public Calendar getCalendar(SchedulingContext ctxt,
java.lang.String calName)
throws SchedulerException
Get the instance with the given
name.Calendar
getCalendar in interface RemotableQuartzSchedulerSchedulerException
public java.lang.String[] getCalendarNames(SchedulingContext ctxt)
throws SchedulerException
Get the names of all registered .Calendars
getCalendarNames in interface RemotableQuartzSchedulerSchedulerExceptionpublic void addGlobalJobListener(JobListener jobListener)
Add the given to the
JobListenerScheduler's global list.
Listeners in the 'global' list receive notification of execution
events for ALL s.Job
addGlobalJobListener in interface RemotableQuartzSchedulerpublic void addJobListener(JobListener jobListener)
Add the given to the
JobListenerScheduler's list, of registered JobListeners.
addJobListener in interface RemotableQuartzSchedulerpublic boolean removeGlobalJobListener(JobListener jobListener)
Remove the given from the
JobListenerScheduler's list of global listeners.
removeGlobalJobListener in interface RemotableQuartzSchedulerpublic boolean removeJobListener(java.lang.String name)
Remove the identifed from
the JobListenerScheduler's list of registered listeners.
removeJobListener in interface RemotableQuartzSchedulerpublic java.util.List getGlobalJobListeners()
Get a List containing all of the
s in the
JobListenerScheduler's global list.
getGlobalJobListeners in interface RemotableQuartzSchedulerpublic java.util.Set getJobListenerNames()
Get a Set containing the names of all the non-global
s registered with the
JobListenerScheduler.
getJobListenerNames in interface RemotableQuartzSchedulerpublic JobListener getJobListener(java.lang.String name)
Get the non-global
that has the given name.JobListener
getJobListener in interface RemotableQuartzSchedulerpublic void addGlobalTriggerListener(TriggerListener triggerListener)
Add the given to the
TriggerListenerScheduler's global list.
Listeners in the 'global' list receive notification of execution
events for ALL s.Trigger
addGlobalTriggerListener in interface RemotableQuartzSchedulerpublic void addTriggerListener(TriggerListener triggerListener)
Add the given to the
TriggerListenerScheduler's list, of registered TriggerListeners.
addTriggerListener in interface RemotableQuartzSchedulerpublic boolean removeGlobalTriggerListener(TriggerListener triggerListener)
Remove the given from
the TriggerListenerScheduler's list of global listeners.
removeGlobalTriggerListener in interface RemotableQuartzSchedulerpublic boolean removeTriggerListener(java.lang.String name)
Remove the identifed
from the TriggerListenerScheduler's list of registered listeners.
removeTriggerListener in interface RemotableQuartzSchedulerpublic java.util.List getGlobalTriggerListeners()
Get a list containing all of the
s in the
TriggerListenerScheduler's global list.
getGlobalTriggerListeners in interface RemotableQuartzSchedulerpublic java.util.Set getTriggerListenerNames()
Get a Set containing the names of all the non-global
s registered with the
TriggerListenerScheduler.
getTriggerListenerNames in interface RemotableQuartzSchedulerpublic TriggerListener getTriggerListener(java.lang.String name)
Get the non-global
that has the given
name.TriggerListener
getTriggerListener in interface RemotableQuartzSchedulerpublic void addSchedulerListener(SchedulerListener schedulerListener)
Register the given with the
SchedulerListenerScheduler.
addSchedulerListener in interface RemotableQuartzSchedulerpublic boolean removeSchedulerListener(SchedulerListener schedulerListener)
Remove the given from the
SchedulerListenerScheduler.
removeSchedulerListener in interface RemotableQuartzSchedulerpublic java.util.List getSchedulerListeners()
Get a List containing all of the s
registered with the SchedulerListenerScheduler.
getSchedulerListeners in interface RemotableQuartzScheduler
protected void notifyJobStoreJobComplete(SchedulingContext ctxt,
Trigger trigger,
JobDetail detail,
int instCode)
throws JobPersistenceException
JobPersistenceExceptionprotected void notifySchedulerThread()
public void notifyTriggerListenersFired(JobExecutionContext jec)
throws SchedulerException
SchedulerException
public void notifyTriggerListenersMisfired(Trigger trigger)
throws SchedulerException
SchedulerException
public void notifyTriggerListenersComplete(JobExecutionContext jec,
int instCode)
throws SchedulerException
SchedulerException
public void notifyJobListenersToBeExecuted(JobExecutionContext jec)
throws SchedulerException
SchedulerException
public void notifyJobListenersWasExecuted(JobExecutionContext jec,
JobExecutionException je)
throws SchedulerException
SchedulerException
public void notifySchedulerListenersError(java.lang.String msg,
SchedulerException se)
public void notifySchedulerListenersSchduled(Trigger trigger)
public void notifySchedulerListenersUnschduled(java.lang.String triggerName,
java.lang.String triggerGroup)
public void notifySchedulerListenersFinalized(Trigger trigger)
public void notifySchedulerListenersPausedTrigger(java.lang.String name,
java.lang.String group)
public void notifySchedulerListenersResumedTrigger(java.lang.String name,
java.lang.String group)
public void notifySchedulerListenersPausedJob(java.lang.String name,
java.lang.String group)
public void notifySchedulerListenersResumedJob(java.lang.String name,
java.lang.String group)
public void notifySchedulerListenersShutdown()
public void addSchedulerPlugin(SchedulerPlugin plugin)
Add the given to
the SchedulerPluginScheduler. This method expects the plugin's
"initialize" method to be invoked externally (either before or after this
method is called).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||