org.quartz.Scheduler instance.
For concrete usage, check out the SchedulerFactoryBean and
SchedulerAccessorBean classes.
Compatible with Quartz 2.1.4 and higher, as of Spring 4.1.
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private org. | |
| private org. | |
| private List | |
| private String[] | |
| protected final Log | |
| private boolean | |
| protected ResourceLoader | |
| private org. | |
| private PlatformTransactionManager | |
| private List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | Returns: true if the job was actually added,
false if it already existed beforethe job to add jobDetailAdd the given job to the Scheduler, if it doesn't already exist. |
| private boolean | Returns: true if the trigger was actually added,
false if it already existed beforethe trigger to add triggerAdd the given trigger to the Scheduler, if it doesn't already exist. |
| protected abstract org. | |
| protected void | |
| protected void | |
| public void | setCalendars(Map<String, org.
a Map with calendar names as keys as Calendar
objects as values calendarsRegister a list of Quartz Calendar objects with the Scheduler that this FactoryBean creates, to be referenced by Triggers. |
| public void | setGlobalJobListeners(org.
Specify global Quartz JobListeners to be registered with the Scheduler. |
| public void | setGlobalTriggerListeners(org.
Specify global Quartz TriggerListeners to be registered with the Scheduler. |
| public void | setJobDetails(org.
Register a list of JobDetail objects with the Scheduler that this FactoryBean creates, to be referenced by Triggers. |
| public void | setJobSchedulingDataLocation(String jobSchedulingDataLocation)
Set the location of a Quartz job definition XML file that follows the "job_scheduling_data_1_5" XSD or better. |
| public void | setJobSchedulingDataLocations(String... jobSchedulingDataLocations)
Set the locations of Quartz job definition XML files that follow the "job_scheduling_data_1_5" XSD or better. |
| public void | setOverwriteExistingJobs(boolean overwriteExistingJobs)
Set whether any jobs defined on this SchedulerFactoryBean should overwrite existing job definitions. |
| public void | setResourceLoader(ResourceLoader
the ResourceLoader object to be used by this object resourceLoader)Implements org. Set the ResourceLoader that this object runs in. This might be a ResourcePatternResolver, which can be checked
through |
| public void | setSchedulerListeners(org.
Specify Quartz SchedulerListeners to be registered with the Scheduler. |
| public void | setTransactionManager(PlatformTransactionManager transactionManager)
Set the transaction manager to be used for registering jobs and triggers that are defined by this SchedulerFactoryBean. |
| public void | setTriggers(org.
Register a list of Trigger objects with the Scheduler that this FactoryBean creates. |
| calendars | back to summary |
|---|---|
| private Map<String, org. | |
| globalJobListeners | back to summary |
|---|---|
| private org. | |
| globalTriggerListeners | back to summary |
|---|---|
| private org. | |
| jobDetails | back to summary |
|---|---|
| private List<org. | |
| jobSchedulingDataLocations | back to summary |
|---|---|
| private String[] jobSchedulingDataLocations
| |
| logger | back to summary |
|---|---|
| protected final Log logger | |
| overwriteExistingJobs | back to summary |
|---|---|
| private boolean overwriteExistingJobs | |
| resourceLoader | back to summary |
|---|---|
| protected ResourceLoader resourceLoader
| |
| schedulerListeners | back to summary |
|---|---|
| private org. | |
| transactionManager | back to summary |
|---|---|
| private PlatformTransactionManager transactionManager
| |
| triggers | back to summary |
|---|---|
| private List<org. | |
| SchedulerAccessor | back to summary |
|---|---|
| public SchedulerAccessor() | |
| addJobToScheduler | back to summary |
|---|---|
| private boolean addJobToScheduler(org. Add the given job to the Scheduler, if it doesn't already exist. Overwrites the job in any case if "overwriteExistingJobs" is set.
| |
| addTriggerToScheduler | back to summary |
|---|---|
| private boolean addTriggerToScheduler(org. Add the given trigger to the Scheduler, if it doesn't already exist. Overwrites the trigger in any case if "overwriteExistingJobs" is set.
| |
| getScheduler | back to summary |
|---|---|
| protected abstract org. Template method that determines the Scheduler to operate on. To be implemented by subclasses. | |
| registerJobsAndTriggers | back to summary |
|---|---|
| protected void registerJobsAndTriggers() throws org.quartz.SchedulerException Register jobs and triggers (within a transaction, if possible). | |
| registerListeners | back to summary |
|---|---|
| protected void registerListeners() throws org.quartz.SchedulerException Register all specified listeners with the Scheduler. | |
| setCalendars | back to summary |
|---|---|
| public void setCalendars(Map<String, org. Register a list of Quartz Calendar objects with the Scheduler that this FactoryBean creates, to be referenced by Triggers.
| |
| setGlobalJobListeners | back to summary |
|---|---|
| public void setGlobalJobListeners(org. Specify global Quartz JobListeners to be registered with the Scheduler. Such JobListeners will apply to all Jobs in the Scheduler. | |
| setGlobalTriggerListeners | back to summary |
|---|---|
| public void setGlobalTriggerListeners(org. Specify global Quartz TriggerListeners to be registered with the Scheduler. Such TriggerListeners will apply to all Triggers in the Scheduler. | |
| setJobDetails | back to summary |
|---|---|
| public void setJobDetails(org. 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.
| |
| setJobSchedulingDataLocation | back to summary |
|---|---|
| public void setJobSchedulingDataLocation(String jobSchedulingDataLocation) Set the location of a Quartz job definition XML file that follows the "job_scheduling_data_1_5" XSD or better. Can be specified to automatically register jobs that are defined in such a file, possibly in addition to jobs defined directly on this SchedulerFactoryBean. | |
| setJobSchedulingDataLocations | back to summary |
|---|---|
| public void setJobSchedulingDataLocations(String... jobSchedulingDataLocations) Set the locations of Quartz job definition XML files that follow the "job_scheduling_data_1_5" XSD or better. Can be specified to automatically register jobs that are defined in such files, possibly in addition to jobs defined directly on this SchedulerFactoryBean. | |
| setOverwriteExistingJobs | back to summary |
|---|---|
| public void setOverwriteExistingJobs(boolean overwriteExistingJobs) 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. | |
| setResourceLoader | back to summary |
|---|---|
| public void setResourceLoader(ResourceLoader resourceLoader) Implements org. Doc from org. Set the ResourceLoader that this object runs in. This might be a ResourcePatternResolver, which can be checked
through Invoked after population of normal bean properties but before an init callback
like InitializingBean's
| |
| setSchedulerListeners | back to summary |
|---|---|
| public void setSchedulerListeners(org. Specify Quartz SchedulerListeners to be registered with the Scheduler. | |
| setTransactionManager | back to summary |
|---|---|
| public void setTransactionManager(PlatformTransactionManager transactionManager) 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. | |
| setTriggers | back to summary |
|---|---|
| public void setTriggers(org. 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.
| |