java.lang.Object | |
↳ | org.springframework.scheduling.quartz.SchedulerAccessor |
Known Direct Subclasses |
Common base class for accessing a Quartz Scheduler, i.e. for registering jobs, triggers and listeners on a org.quartz.Scheduler instance.
For concrete usage, check out the SchedulerFactoryBean
and
SchedulerAccessorBean
classes.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
logger | |||||||||||
resourceLoader |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Register a list of Quartz Calendar objects with the Scheduler
that this FactoryBean creates, to be referenced by Triggers.
| |||||||||||
Specify global Quartz JobListeners to be registered with the Scheduler.
| |||||||||||
Specify global Quartz TriggerListeners to be registered with the Scheduler.
| |||||||||||
Register a list of JobDetail objects with the Scheduler that
this FactoryBean creates, to be referenced by Triggers.
| |||||||||||
Specify named Quartz JobListeners to be registered with the Scheduler.
| |||||||||||
Set the location of a Quartz job definition XML file that follows the
"job_scheduling_data_1_5" XSD.
| |||||||||||
Set the locations of Quartz job definition XML files that follow the
"job_scheduling_data_1_5" XSD.
| |||||||||||
Set whether any jobs defined on this SchedulerFactoryBean should overwrite
existing job definitions.
| |||||||||||
Set the ResourceLoader that this object runs in.
| |||||||||||
Specify Quartz SchedulerListeners to be registered with the Scheduler.
| |||||||||||
Set the transaction manager to be used for registering jobs and triggers
that are defined by this SchedulerFactoryBean.
| |||||||||||
Specify named Quartz TriggerListeners to be registered with the Scheduler.
| |||||||||||
Register a list of Trigger objects with the Scheduler that
this FactoryBean creates.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Template method that determines the Scheduler to operate on.
| |||||||||||
Register jobs and triggers (within a transaction, if possible).
| |||||||||||
Register all specified listeners with the Scheduler.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.context.ResourceLoaderAware
|
Register a list of Quartz Calendar objects with the Scheduler that this FactoryBean creates, to be referenced by Triggers.
calendars | Map with calendar names as keys as Calendar objects as values |
---|
Specify global Quartz JobListeners to be registered with the Scheduler. Such JobListeners will apply to all Jobs in the Scheduler.
Specify global Quartz TriggerListeners to be registered with the Scheduler. Such TriggerListeners will apply to all Triggers in the Scheduler.
Register a list of JobDetail objects with the Scheduler that this FactoryBean creates, to be referenced by Triggers.
This is not necessary when a Trigger determines the JobDetail itself: In this case, the JobDetail will be implicitly registered in combination with the Trigger.
setTriggers(Trigger[])
JobDetailBean
JobDetailAwareTrigger
Specify named Quartz JobListeners to be registered with the Scheduler. Such JobListeners will only apply to Jobs that explicitly activate them via their name.
setJobListenerNames(String[])
Set the location of a Quartz job definition XML file that follows the "job_scheduling_data_1_5" XSD. Can be specified to automatically register jobs that are defined in such a file, possibly in addition to jobs defined directly on this SchedulerFactoryBean.
Set the locations of Quartz job definition XML files that follow the "job_scheduling_data_1_5" XSD. Can be specified to automatically register jobs that are defined in such files, possibly in addition to jobs defined directly on this SchedulerFactoryBean.
Set whether any jobs defined on this SchedulerFactoryBean should overwrite existing job definitions. Default is "false", to not overwrite already registered jobs that have been read in from a persistent job store.
Set the ResourceLoader that this object runs in.
This might be a ResourcePatternResolver, which can be checked
through instanceof ResourcePatternResolver
. See also the
ResourcePatternUtils.getResourcePatternResolver
method.
Invoked after population of normal bean properties but before an init callback
like InitializingBean's afterPropertiesSet
or a custom init-method.
Invoked before ApplicationContextAware's setApplicationContext
.
resourceLoader | ResourceLoader object to be used by this object |
---|
Specify Quartz SchedulerListeners to be registered with the Scheduler.
Set the transaction manager to be used for registering jobs and triggers that are defined by this SchedulerFactoryBean. Default is none; setting this only makes sense when specifying a DataSource for the Scheduler.
Specify named Quartz TriggerListeners to be registered with the Scheduler. Such TriggerListeners will only apply to Triggers that explicitly activate them via their name.
setTriggerListenerNames(String[])
setTriggerListenerNames(String[])
Register a list of Trigger objects with the Scheduler that this FactoryBean creates.
If the Trigger determines the corresponding JobDetail itself, the job will be automatically registered with the Scheduler. Else, the respective JobDetail needs to be registered via the "jobDetails" property of this FactoryBean.
setJobDetails(JobDetail[])
JobDetailAwareTrigger
CronTriggerBean
SimpleTriggerBean
Template method that determines the Scheduler to operate on. To be implemented by subclasses.
Register jobs and triggers (within a transaction, if possible).
SchedulerException |
---|
Register all specified listeners with the Scheduler.
SchedulerException |
---|