public class QuartzSchedulerExecutor extends Object implements org.bonitasoft.engine.scheduler.SchedulerExecutor
| Constructor and Description |
|---|
QuartzSchedulerExecutor(BonitaSchedulerFactory schedulerFactory,
List<AbstractJobListener> jobListeners,
org.bonitasoft.engine.transaction.TransactionService transactionService,
boolean useOptimization) |
| Modifier and Type | Method and Description |
|---|---|
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) |
boolean |
isShutdown() |
boolean |
isStarted() |
boolean |
isStillScheduled(String groupName,
String jobName) |
void |
pauseJobs(String groupName) |
void |
rescheduleErroneousTriggers() |
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, List<AbstractJobListener> jobListeners, org.bonitasoft.engine.transaction.TransactionService transactionService, boolean useOptimization)
public 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 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 void setBOSSchedulerService(org.bonitasoft.engine.scheduler.impl.SchedulerServiceImpl schedulerService)
setBOSSchedulerService in interface org.bonitasoft.engine.scheduler.SchedulerExecutorpublic 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.SSchedulerExceptionCopyright © 2014 Bonitasoft S.A.. All rights reserved.