@Profile(value="prod") @Configuration public class QuartzConfig extends Object
Scheduler
,
QuartzJob
,
QuartzCronTrigger
,
QuartzSimpleTrigger
,
AnnotationMethodTriggerFactory
,
DefaultScheduler
Constructor and Description |
---|
QuartzConfig() |
Modifier and Type | Method and Description |
---|---|
org.quartz.Scheduler |
concurrentClusterJobScheduler()
Scheduler that store information about jobs and triggers into memory. |
QuartzSchedulerLifecycle |
concurrentSchedulerLifecycle(org.quartz.Scheduler scheduler)
Lifecycle for scheduler that store information into memory.
|
org.quartz.spi.JobFactory |
jobFactory()
Create job factory.
|
org.quartz.Scheduler |
notConcurrentClusterJobScheduler(DataSource dataSource,
org.springframework.core.env.ConfigurableEnvironment env)
Scheduler that store information about jobs and triggers into database. |
QuartzSchedulerLifecycle |
notConcurrentSchedulerLifecycle(org.quartz.Scheduler scheduler)
Lifecycle for scheduler that store information into database.
|
org.springframework.beans.factory.config.BeanPostProcessor |
simpleMethodTriggerFactory()
Create
AnnotationMethodTriggerFactory . |
@Bean public org.quartz.spi.JobFactory jobFactory()
@Bean public QuartzSchedulerLifecycle notConcurrentSchedulerLifecycle(@Qualifier(value="notConcurrentClusterJobScheduler") org.quartz.Scheduler scheduler)
scheduler
- schedulernotConcurrentClusterJobScheduler(DataSource, ConfigurableEnvironment)
@Bean public QuartzSchedulerLifecycle concurrentSchedulerLifecycle(@Qualifier(value="concurrentClusterJobScheduler") org.quartz.Scheduler scheduler)
scheduler
- schedulerconcurrentClusterJobScheduler()
@Bean public org.quartz.Scheduler concurrentClusterJobScheduler()
Scheduler
that store information about jobs and triggers into memory.
This scheduler run jobs in all nodes in cluster at the same time.@Bean public org.quartz.Scheduler notConcurrentClusterJobScheduler(DataSource dataSource, org.springframework.core.env.ConfigurableEnvironment env)
Scheduler
that store information about jobs and triggers into database.
This scheduler run jobs only in one node in cluster at the same time.dataSource
- data sourceenv
- environment@Bean public org.springframework.beans.factory.config.BeanPostProcessor simpleMethodTriggerFactory()
AnnotationMethodTriggerFactory
.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.