Search in sources :

Example 1 with SimpleJobFactory

use of org.quartz.simpl.SimpleJobFactory in project cloudbreak by hortonworks.

the class AppConfig method schedulerFactoryBean.

@Bean
public SchedulerFactoryBean schedulerFactoryBean() {
    SchedulerFactoryBean scheduler = new SchedulerFactoryBean();
    scheduler.setTaskExecutor(getAsyncExecutor());
    scheduler.setAutoStartup(true);
    scheduler.setJobFactory(new SimpleJobFactory());
    return scheduler;
}
Also used : SchedulerFactoryBean(org.springframework.scheduling.quartz.SchedulerFactoryBean) SimpleJobFactory(org.quartz.simpl.SimpleJobFactory) ThreadPoolExecutorFactoryBean(org.springframework.scheduling.concurrent.ThreadPoolExecutorFactoryBean) Bean(org.springframework.context.annotation.Bean) SchedulerFactoryBean(org.springframework.scheduling.quartz.SchedulerFactoryBean)

Aggregations

SimpleJobFactory (org.quartz.simpl.SimpleJobFactory)1 Bean (org.springframework.context.annotation.Bean)1 ThreadPoolExecutorFactoryBean (org.springframework.scheduling.concurrent.ThreadPoolExecutorFactoryBean)1 SchedulerFactoryBean (org.springframework.scheduling.quartz.SchedulerFactoryBean)1