use of org.springframework.scheduling.quartz.SchedulerFactoryBean in project Settler by EmhyrVarEmreis.
the class SchedulerConfiguration method schedulerFactoryBean.
@Bean
public SchedulerFactoryBean schedulerFactoryBean(JobFactory jobFactory, DataSource dataSource) {
log.debug("Creating SchedulerFactoryBean");
SchedulerFactoryBean factoryBean = new SchedulerFactoryBean();
factoryBean.setSchedulerName("defaultScheduler");
factoryBean.setStartupDelay(15);
factoryBean.setWaitForJobsToCompleteOnShutdown(true);
factoryBean.setConfigLocation(new ClassPathResource("quartz.properties"));
factoryBean.setJobFactory(jobFactory);
factoryBean.setDataSource(dataSource);
return factoryBean;
}
use of org.springframework.scheduling.quartz.SchedulerFactoryBean in project dq-easy-cloud by dq-open-cloud.
the class EcTaskSchedulerConfig method schedulerFactoryBean.
@Bean(name = "schedulerFactoryBean")
public SchedulerFactoryBean schedulerFactoryBean(DataSource dataSource, JobFactory jobFactory) throws Exception {
SchedulerFactoryBean factory = new SchedulerFactoryBean();
factory.setDataSource(dataSource);
factory.setJobFactory(jobFactory);
factory.setQuartzProperties(quartzProperties());
factory.afterPropertiesSet();
factory.setStartupDelay(10);
factory.setAutoStartup(true);
return factory;
}
use of org.springframework.scheduling.quartz.SchedulerFactoryBean in project topcom-cloud by 545314690.
the class SchedledConfiguration method schedulerFactoryBean.
@Bean
public SchedulerFactoryBean schedulerFactoryBean() {
SchedulerFactoryBean scheduler = new SchedulerFactoryBean();
scheduler.setJobFactory(autoWiringSpringBeanJobFactory());
return scheduler;
}
Aggregations