Search in sources :

Example 1 with SchedulerManager

use of eu.bcvsolutions.idm.core.scheduler.api.service.SchedulerManager in project CzechIdMng by bcvsolutions.

the class SchedulerConfig method schedulerManager.

@DependsOn(CoreFlywayConfig.NAME)
@Bean(name = "schedulerManager")
public SchedulerManager schedulerManager(ApplicationContext context, IdmDependentTaskTriggerRepository dependentTaskTriggerRepository) {
    SchedulerManager manager = new DefaultSchedulerManager(context, schedulerFactoryBean(context).getScheduler(), dependentTaskTriggerRepository);
    // read all task - checks obsolete task types and remove them before scheduler starts automatically
    manager.getAllTasks();
    // 
    return manager;
}
Also used : DefaultSchedulerManager(eu.bcvsolutions.idm.core.scheduler.service.impl.DefaultSchedulerManager) SchedulerManager(eu.bcvsolutions.idm.core.scheduler.api.service.SchedulerManager) DefaultSchedulerManager(eu.bcvsolutions.idm.core.scheduler.service.impl.DefaultSchedulerManager) DependsOn(org.springframework.context.annotation.DependsOn) PropertiesFactoryBean(org.springframework.beans.factory.config.PropertiesFactoryBean) Bean(org.springframework.context.annotation.Bean) SchedulerFactoryBean(org.springframework.scheduling.quartz.SchedulerFactoryBean)

Aggregations

SchedulerManager (eu.bcvsolutions.idm.core.scheduler.api.service.SchedulerManager)1 DefaultSchedulerManager (eu.bcvsolutions.idm.core.scheduler.service.impl.DefaultSchedulerManager)1 PropertiesFactoryBean (org.springframework.beans.factory.config.PropertiesFactoryBean)1 Bean (org.springframework.context.annotation.Bean)1 DependsOn (org.springframework.context.annotation.DependsOn)1 SchedulerFactoryBean (org.springframework.scheduling.quartz.SchedulerFactoryBean)1