public class QuartzSchedulerExecutor extends java.lang.Object implements SchedulerExecutor
| Constructor and Description |
|---|
QuartzSchedulerExecutor(BonitaSchedulerFactory schedulerFactory,
TransactionService transactionService,
SessionAccessor sessionAccessor,
TechnicalLoggerService loggerService,
boolean useOptimization) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(java.lang.String jobName,
java.lang.String groupName) |
void |
deleteJobs(java.lang.String groupName) |
void |
executeAgain(long jobId,
java.lang.String groupName,
java.lang.String jobName,
boolean disallowConcurrentExecution,
int delayInMillis) |
java.util.List<java.lang.String> |
getAllJobs() |
java.util.List<java.lang.String> |
getJobs(java.lang.String groupName) |
boolean |
isExistingJob(java.lang.String jobName,
java.lang.String groupName)
Check if a job exists.
|
boolean |
isShutdown() |
boolean |
isStarted() |
boolean |
mayFireAgain(java.lang.String groupName,
java.lang.String jobName) |
void |
pauseJobs(java.lang.String groupName) |
void |
rescheduleErroneousTriggers() |
java.util.Date |
rescheduleJob(java.lang.String triggerName,
java.lang.String groupName,
java.util.Date triggerStartTime)
Remove (delete) the
with the given key, and store the new given one - which must be associated
with the same job (the new trigger must have the job name & group specified)
- however, the new trigger need not have the same name as the old trigger. |
void |
resumeJobs(java.lang.String groupName) |
void |
schedule(long jobId,
java.lang.String groupName,
java.lang.String jobName,
Trigger trigger,
boolean disallowConcurrentExecution) |
void |
setBOSSchedulerService(SchedulerServiceImpl schedulerService) |
void |
setJobListeners(java.util.List<BonitaJobListener> jobListeners) |
void |
shutdown()
Note that once a scheduler is shutdown, it cannot be restarted without being re-instantiated.
|
void |
start()
Note that once a scheduler is shutdown, it cannot be restarted without being re-instantiated.
|
public QuartzSchedulerExecutor(BonitaSchedulerFactory schedulerFactory, TransactionService transactionService, SessionAccessor sessionAccessor, TechnicalLoggerService loggerService, boolean useOptimization)
public void setJobListeners(java.util.List<BonitaJobListener> jobListeners)
public void setBOSSchedulerService(SchedulerServiceImpl schedulerService)
setBOSSchedulerService in interface SchedulerExecutorpublic void schedule(long jobId,
java.lang.String groupName,
java.lang.String jobName,
Trigger trigger,
boolean disallowConcurrentExecution)
throws SSchedulerException
schedule in interface SchedulerExecutorSSchedulerExceptionpublic void executeAgain(long jobId,
java.lang.String groupName,
java.lang.String jobName,
boolean disallowConcurrentExecution,
int delayInMillis)
throws SSchedulerException
executeAgain in interface SchedulerExecutorSSchedulerExceptionpublic boolean isStarted()
throws SSchedulerException
isStarted in interface SchedulerExecutorSSchedulerExceptionpublic boolean isShutdown()
throws SSchedulerException
isShutdown in interface SchedulerExecutorSSchedulerExceptionpublic void start()
throws SSchedulerException
SchedulerExecutorstart in interface SchedulerExecutorSSchedulerExceptionpublic void shutdown()
throws SSchedulerException
SchedulerExecutorshutdown in interface SchedulerExecutorSSchedulerExceptionpublic boolean delete(java.lang.String jobName,
java.lang.String groupName)
throws SSchedulerException
delete in interface SchedulerExecutorSSchedulerExceptionpublic void deleteJobs(java.lang.String groupName)
throws SSchedulerException
deleteJobs in interface SchedulerExecutorSSchedulerExceptionpublic boolean isExistingJob(java.lang.String jobName,
java.lang.String groupName)
throws SSchedulerException
SchedulerExecutorisExistingJob in interface SchedulerExecutorjobName - The name of the jobgroupName - The group of the jobSSchedulerExceptionpublic java.util.List<java.lang.String> getJobs(java.lang.String groupName)
throws SSchedulerException
getJobs in interface SchedulerExecutorSSchedulerExceptionpublic java.util.List<java.lang.String> getAllJobs()
throws SSchedulerException
getAllJobs in interface SchedulerExecutorSSchedulerExceptionpublic boolean mayFireAgain(java.lang.String groupName,
java.lang.String jobName)
throws SSchedulerException
mayFireAgain in interface SchedulerExecutorSSchedulerExceptionpublic void rescheduleErroneousTriggers()
throws SSchedulerException
rescheduleErroneousTriggers in interface SchedulerExecutorSSchedulerExceptionpublic void pauseJobs(java.lang.String groupName)
throws SSchedulerException
pauseJobs in interface SchedulerExecutorSSchedulerExceptionpublic void resumeJobs(java.lang.String groupName)
throws SSchedulerException
resumeJobs in interface SchedulerExecutorSSchedulerExceptionpublic java.util.Date rescheduleJob(java.lang.String triggerName,
java.lang.String groupName,
java.util.Date triggerStartTime)
throws SSchedulerException
SchedulerExecutorTrigger with the given key, and store the new given one - which must be associated
with the same job (the new trigger must have the job name & group specified)
- however, the new trigger need not have the same name as the old trigger.rescheduleJob in interface SchedulerExecutortriggerName - The name of the trigger to replacegroupName - The group name of the trigger to replacetriggerStartTime - The start date of the new triggernull if a Trigger with the given
name & group was not found and removed from the store (and the
new trigger is therefore not stored), otherwise
the first fire time of the newly scheduled trigger is returned.SSchedulerException