Package ch.tocco.nice2.tasks.impl.quartz
Class BatchJobManagerImpl
java.lang.Object
ch.tocco.nice2.tasks.impl.quartz.BatchJobManagerImpl
- All Implemented Interfaces:
BatchJobManager
-
Constructor Summary
ConstructorsConstructorDescriptionBatchJobManagerImpl(org.slf4j.Logger logger, RunEnvironmentService runEnvironmentService, SecurityManager securityManager, PersistenceService persistenceService, org.quartz.Scheduler scheduler, TaskSchedulingService taskSchedulingService, TimezoneResolverService timezoneResolverService) -
Method Summary
Modifier and TypeMethodDescriptionbooleancheck if a batch job is registered in the managerorg.quartz.JobKeyexecuteBatchJobImmediately(String batchJobId) Manually trigger execution of a batch jobvoidinit(List<BatchJobContribution> batchJobContributions) voidsetConverters(List<com.thoughtworks.xstream.converters.Converter> converters) voidsetDisableBatchJobs(boolean disableBatchJobs) voidupdateBatchJob(BatchJobDefinition batchJobDefinition) Update scheduling of the given batch job
-
Constructor Details
-
BatchJobManagerImpl
public BatchJobManagerImpl(org.slf4j.Logger logger, RunEnvironmentService runEnvironmentService, SecurityManager securityManager, PersistenceService persistenceService, org.quartz.Scheduler scheduler, TaskSchedulingService taskSchedulingService, TimezoneResolverService timezoneResolverService)
-
-
Method Details
-
setDisableBatchJobs
@Value("${ch.tocco.nice2.tasks.disable.persistent.task.scheduling}") public void setDisableBatchJobs(boolean disableBatchJobs) -
setConverters
@Autowired public void setConverters(List<com.thoughtworks.xstream.converters.Converter> converters) -
init
public void init(List<BatchJobContribution> batchJobContributions) throws org.quartz.SchedulerException - Throws:
org.quartz.SchedulerException
-
executeBatchJobImmediately
Description copied from interface:BatchJobManagerManually trigger execution of a batch job- Specified by:
executeBatchJobImmediatelyin interfaceBatchJobManager
-
updateBatchJob
Description copied from interface:BatchJobManagerUpdate scheduling of the given batch job- Specified by:
updateBatchJobin interfaceBatchJobManager
-
doesBatchJobExist
Description copied from interface:BatchJobManagercheck if a batch job is registered in the manager- Specified by:
doesBatchJobExistin interfaceBatchJobManager
-