@groovy.util.logging.Slf4j class QuartzGrailsPlugin extends Plugin
| Type | Name and description |
|---|---|
java.lang.Object |
author |
java.lang.Object |
configureJobBeansConfigure job beans. |
java.lang.Object |
configureScheduler |
java.lang.Object |
description |
java.lang.Object |
documentation |
java.lang.Object |
grailsVersion |
java.lang.Object |
issueManagement |
java.lang.Object |
license |
java.util.List |
loadAfter |
java.lang.Object |
profiles |
java.lang.Object |
scm |
java.lang.Object |
title |
java.lang.Object |
watchedResources |
| Properties inherited from class | Properties |
|---|---|
class Plugin |
applicationContext, artefacts, environment, grailsApplication, plugin, pluginManager |
| Constructor and description |
|---|
QuartzGrailsPlugin() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
groovy.lang.Closure |
doWithSpring() |
|
java.lang.String |
getJdbcStoreDataSource()The name of the Spring bean holding the DataSource Quartz uses when the JDBC job store is enabled. |
|
java.lang.String |
getSchedulerInstanceName()The name given to the scheduler. |
|
boolean |
isAutoStartup()Whether the scheduler is started once the application has finished bootstrapping. |
|
boolean |
isExposeSchedulerInRepository()Whether the scheduler is registered with the Quartz SchedulerRepository. |
|
boolean |
isJdbcStore()Whether Quartz persists jobs and triggers in a database instead of the in memory RAMJobStore. |
|
boolean |
isPluginEnabled()Whether the plugin is active. |
|
boolean |
isPurgeQuartzTablesOnStartup()Whether every Quartz table is emptied during startup. |
|
boolean |
isWaitForJobsToCompleteOnShutdown()Whether shutdown blocks until currently executing jobs have finished. |
|
java.lang.Object |
loadQuartzProperties()Loads the quartz stanza from the grails configuration and turns it into a flattened Properties object suitable for use by the Quartz SchedulerFactoryBean. |
|
void |
onChange(java.util.Map<java.lang.String, java.lang.Object> event) |
|
void |
onShutdown(java.util.Map<java.lang.String, java.lang.Object> event) |
|
void |
onStartup(java.util.Map<java.lang.String, java.lang.Object> event) |
|
void |
refreshJobs(boolean ignoreErrors) |
|
java.lang.Object |
scheduleJob(GrailsJobClass jobClass, ApplicationContext ctx, boolean hasHibernate)Schedules jobs. |
| Methods inherited from class | Name |
|---|---|
class Plugin |
beans, doWithApplicationContext, doWithDynamicMethods, doWithSpring, getApplicationContext, getConfig, getManager, onChange, onConfigChange, onShutdown, onStartup, setApplicationContext |
Configure job beans.
The name of the Spring bean holding the DataSource Quartz uses when the JDBC job store is enabled.
quartz.jdbcStoreDataSource, or dataSourceThe name given to the scheduler. When unset the bean name is used.
quartz.scheduler.instanceName, or nullWhether the scheduler is started once the application has finished bootstrapping.
true unless quartz.autoStartup is configured otherwise Whether the scheduler is registered with the Quartz SchedulerRepository.
false unless quartz.exposeSchedulerInRepository is configured otherwise Whether Quartz persists jobs and triggers in a database instead of the in memory RAMJobStore.
false unless quartz.jdbcStore is configured otherwiseWhether the plugin is active. When disabled no scheduler, job beans or listeners are registered and no job is ever scheduled.
true unless quartz.pluginEnabled is configured otherwiseWhether every Quartz table is emptied during startup. Only honoured when the JDBC job store is enabled and a Hibernate plugin is present.
false unless quartz.purgeQuartzTablesOnStartup is configured otherwiseWhether shutdown blocks until currently executing jobs have finished.
true unless quartz.waitForJobsToCompleteOnShutdown is configured otherwiseLoads the quartz stanza from the grails configuration and turns it into a flattened Properties object suitable for use by the Quartz SchedulerFactoryBean.
Schedules jobs. Creates job details and trigger beans. And schedules them.