@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 |
getApplicationName()The name of the application, which every job registered by the plugin is stamped with. |
|
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 |
isApplicationNamed()Whether the application registers its jobs under a name of its own. |
|
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 |
isFailOnNeverFiringTriggers()Whether startup fails when a job declares a trigger which can never fire, for example a cron expression whose last occurrence is in the past. |
|
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 |
beanRegistrar, beans, doWithApplicationContext, doWithDynamicMethods, doWithSpring, doWithSpring, getApplicationContext, getConfig, getManager, onChange, onConfigChange, onShutdown, onStartup, setApplicationContext |
Configure job beans.
The name of the application, which every job registered by the plugin is stamped with. It is what lets the plugin recognise its own jobs in a job store shared with other applications, so that it never removes a job it did not register itself.
info.app.name, or the name the application metadata reports 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 application registers its jobs under a name of its own. An application which does not name itself registers them under the default name, which every application that does not name itself shares.
false when the name of the application is the default oneWhether 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 startup fails when a job declares a trigger which can never fire, for example a cron
expression whose last occurrence is in the past. When false such a trigger is reported
and skipped, and the rest of the application starts as usual.
false unless quartz.failOnNeverFiringTriggers 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.