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
ConstructorDescriptionBatchJobManagerImpl
(org.slf4j.Logger logger, RunEnvironmentService runEnvironmentService, SecurityManager securityManager, PersistenceService persistenceService, org.quartz.Scheduler scheduler, TaskSchedulingService taskSchedulingService, TimezoneResolverService timezoneResolverService) -
Method Summary
Modifier and TypeMethodDescriptionboolean
check if a batch job is registered in the managerorg.quartz.JobKey
executeBatchJobImmediately
(String batchJobId) Manually trigger execution of a batch jobvoid
init
(List<BatchJobContribution> batchJobContributions) void
setConverters
(List<com.thoughtworks.xstream.converters.Converter> converters) void
setDisableBatchJobs
(boolean disableBatchJobs) void
updateBatchJob
(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:BatchJobManager
Manually trigger execution of a batch job- Specified by:
executeBatchJobImmediately
in interfaceBatchJobManager
-
updateBatchJob
Description copied from interface:BatchJobManager
Update scheduling of the given batch job- Specified by:
updateBatchJob
in interfaceBatchJobManager
-
doesBatchJobExist
Description copied from interface:BatchJobManager
check if a batch job is registered in the manager- Specified by:
doesBatchJobExist
in interfaceBatchJobManager
-