public class QuartzSchedulerExecutor extends Object implements org.bonitasoft.engine.scheduler.SchedulerExecutor
| Constructor and Description |
|---|
QuartzSchedulerExecutor(BonitaSchedulerFactory schedulerFactory,
List<AbstractJobListener> jobListeners,
org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor,
org.bonitasoft.engine.transaction.TransactionService transactionService,
boolean useOptimization) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(String jobName) |
void |
deleteJobs() |
void |
executeAgain(long jobId,
long tenantId,
String jobName,
boolean disallowConcurrentExecution) |
void |
executeNow(long jobId,
long tenantId,
String jobName,
boolean disallowConcurrentExecution) |
List<String> |
getAllJobs() |
List<String> |
getJobs() |
boolean |
isShutdown() |
boolean |
isStarted() |
boolean |
isStillScheduled(long tenantId,
String jobName) |
void |
pause(String jobName) |
void |
pauseJobs() |
void |
reschedule(String triggerName,
org.bonitasoft.engine.scheduler.trigger.Trigger newTrigger) |
void |
resume(String jobName) |
void |
resumeJobs() |
void |
schedule(long jobId,
long tenantId,
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.sessionaccessor.ReadSessionAccessor sessionAccessor, org.bonitasoft.engine.transaction.TransactionService transactionService, boolean useOptimization)
public void schedule(long jobId,
long tenantId,
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,
long tenantId,
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,
long tenantId,
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.SSchedulerExceptionpublic void reschedule(String triggerName, org.bonitasoft.engine.scheduler.trigger.Trigger newTrigger) throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
reschedule in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic void resume(String jobName) throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
resume in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic void resumeJobs()
throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
resumeJobs in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic void pause(String jobName) throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
pause in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic void pauseJobs()
throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
pauseJobs in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic boolean delete(String jobName) throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
delete in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic void deleteJobs()
throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
deleteJobs in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionpublic List<String> getJobs() 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(long tenantId,
String jobName)
throws org.bonitasoft.engine.scheduler.exception.SSchedulerException
isStillScheduled in interface org.bonitasoft.engine.scheduler.SchedulerExecutororg.bonitasoft.engine.scheduler.exception.SSchedulerExceptionCopyright © 2013 BonitaSoft. All Rights Reserved.