public class QuartzSchedulerExecutor extends Object implements org.bonitasoft.engine.scheduler.SchedulerExecutor
| Constructor and Description |
|---|
QuartzSchedulerExecutor(BonitaSchedulerFactory schedulerFactory,
org.bonitasoft.engine.transaction.TransactionService transactionService,
org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
boolean useOptimization) |
| Modifier and Type | Method and Description |
|---|---|
void |
addJobListener(List<org.bonitasoft.engine.scheduler.AbstractBonitaPlatformJobListener> jobListeners) |
void |
addJobListener(List<org.bonitasoft.engine.scheduler.AbstractBonitaTenantJobListener> jobListeners,
String groupName) |
protected void |
checkSchedulerState() |
boolean |
delete(String jobName,
String groupName) |
void |
deleteJobs(String groupName) |
void |
executeAgain(long jobId,
String groupName,
String jobName,
boolean disallowConcurrentExecution) |
void |
executeNow(long jobId,
String groupName,
String jobName,
boolean disallowConcurrentExecution) |
List<String> |
getAllJobs() |
List<String> |
getJobs(String groupName) |
void |
initializeScheduler() |
boolean |
isExistingJob(String jobName,
String groupName) |
boolean |
isShutdown() |
boolean |
isStarted() |
boolean |
isStillScheduled(String groupName,
String jobName) |
void |
pauseJobs(String groupName) |
void |
rescheduleErroneousTriggers() |
Date |
rescheduleJob(String triggerName,
String groupName,
Date triggerStartTime) |
void |
resumeJobs(String groupName) |
void |
schedule(long jobId,
String groupName,
String jobName,
org.bonitasoft.engine.scheduler.trigger.Trigger trigger,
boolean disallowConcurrentExecution) |
void |
setBOSSchedulerService(org.bonitasoft.engine.scheduler.impl.SchedulerServiceImpl schedulerService) |
void |
shutdown() |
void |
start() |
public QuartzSchedulerExecutor(BonitaSchedulerFactory schedulerFactory, org.bonitasoft.engine.transaction.TransactionService transactionService, org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor, org.bonitasoft.engine.log.technical.TechnicalLoggerService logger, boolean useOptimization)
public void setBOSSchedulerService(org.bonitasoft.engine.scheduler.impl.SchedulerServiceImpl schedulerService)
setBOSSchedulerService in interface org.bonitasoft.engine.scheduler.SchedulerExecutorpublic void schedule(long jobId,
String groupName,
String jobName,
org.bonitasoft.engine.scheduler.trigger.Trigger trigger,
boolean disallowConcurrentExecution)
throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
schedule in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic void executeNow(long jobId,
String groupName,
String jobName,
boolean disallowConcurrentExecution)
throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
executeNow in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic void executeAgain(long jobId,
String groupName,
String jobName,
boolean disallowConcurrentExecution)
throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
executeAgain in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic boolean isStarted()
throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
isStarted in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic boolean isShutdown()
throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
isShutdown in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic void start()
throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
start in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic void shutdown()
throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
shutdown in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionprotected void checkSchedulerState()
throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
org.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic boolean delete(String jobName, String groupName) throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
delete in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic void deleteJobs(String groupName) throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
deleteJobs in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic boolean isExistingJob(String jobName, String groupName) throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
isExistingJob in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic List<String> getJobs(String groupName) throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
getJobs in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic List<String> getAllJobs() throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
getAllJobs in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic boolean isStillScheduled(String groupName, String jobName) throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
isStillScheduled in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic void rescheduleErroneousTriggers()
throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
rescheduleErroneousTriggers in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic void pauseJobs(String groupName) throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
pauseJobs in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic void resumeJobs(String groupName) throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
resumeJobs in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic Date rescheduleJob(String triggerName, String groupName, Date triggerStartTime) throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
rescheduleJob in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic void addJobListener(List<org.bonitasoft.engine.scheduler.AbstractBonitaTenantJobListener> jobListeners, String groupName) throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
addJobListener in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic void addJobListener(List<org.bonitasoft.engine.scheduler.AbstractBonitaPlatformJobListener> jobListeners) throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
addJobListener in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic void initializeScheduler()
throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
initializeScheduler in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionCopyright © 2016 Bonitasoft S.A.. All rights reserved.