public interface SchedulerExecutor
| Modifier and Type | Method and Description |
|---|---|
void |
addJobListener(List<AbstractBonitaPlatformJobListener> jobListeners)
Add the given
to the Scheduler, and register it to receive events for all Jobs. |
void |
addJobListener(List<AbstractBonitaTenantJobListener> jobListeners,
String groupName)
Add the given
to the Scheduler, and register it to receive events for Jobs that are
matched by the group name. |
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()
Initialize the scheduler if this method has not be previously called (after shutdown); otherwise, do nothing.
|
boolean |
isExistingJob(String jobName,
String groupName)
Check if a job exists.
|
boolean |
isShutdown() |
boolean |
isStarted() |
boolean |
isStillScheduled(String groupName,
String jobName) |
void |
pauseJobs(String groupName) |
void |
rescheduleErroneousTriggers() |
Date |
rescheduleJob(String triggerName,
String groupName,
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(String groupName) |
void |
schedule(long jobId,
String groupName,
String jobName,
Trigger trigger,
boolean disallowConcurrentExecution) |
void |
setBOSSchedulerService(SchedulerServiceImpl schedulerService) |
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.
|
boolean isStarted()
throws SSchedulerException
SSchedulerExceptionboolean isShutdown()
throws SSchedulerException
SSchedulerExceptionvoid start()
throws SSchedulerException
SSchedulerException#initializeScheduler()}void shutdown()
throws SSchedulerException
SSchedulerException#initializeScheduler()}void rescheduleErroneousTriggers()
throws SSchedulerException
SSchedulerExceptionboolean delete(String jobName, String groupName) throws SSchedulerException
SSchedulerExceptionvoid deleteJobs(String groupName) throws SSchedulerException
SSchedulerExceptionList<String> getJobs(String groupName) throws SSchedulerException
SSchedulerExceptionvoid setBOSSchedulerService(SchedulerServiceImpl schedulerService)
List<String> getAllJobs() throws SSchedulerException
SSchedulerExceptionvoid executeNow(long jobId,
String groupName,
String jobName,
boolean disallowConcurrentExecution)
throws SSchedulerException
SSchedulerExceptionvoid schedule(long jobId,
String groupName,
String jobName,
Trigger trigger,
boolean disallowConcurrentExecution)
throws SSchedulerException
SSchedulerExceptionboolean isStillScheduled(String groupName, String jobName) throws SSchedulerException
SSchedulerExceptionvoid executeAgain(long jobId,
String groupName,
String jobName,
boolean disallowConcurrentExecution)
throws SSchedulerException
SSchedulerExceptionvoid pauseJobs(String groupName) throws SSchedulerException
SSchedulerExceptionvoid resumeJobs(String groupName) throws SSchedulerException
SSchedulerExceptionDate rescheduleJob(String triggerName, String groupName, Date triggerStartTime) throws SSchedulerException
Trigger 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.triggerName - 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.SSchedulerExceptionvoid addJobListener(List<AbstractBonitaTenantJobListener> jobListeners, String groupName) throws SSchedulerException
AbstractBonitaTenantJobListeners to the Scheduler, and register it to receive events for Jobs that are
matched by the group name.jobListeners - The job listeners to add to the schedulergroupName - The group name to filterSSchedulerExceptionvoid addJobListener(List<AbstractBonitaPlatformJobListener> jobListeners) throws SSchedulerException
AbstractBonitaPlatformJobListeners to the Scheduler, and register it to receive events for all Jobs.jobListeners - The job listeners to add to the schedulerSSchedulerExceptionvoid initializeScheduler()
throws SSchedulerException
SSchedulerExceptionboolean isExistingJob(String jobName, String groupName) throws SSchedulerException
jobName - The name of the jobgroupName - The group of the jobSSchedulerExceptionCopyright © 2019 Bonitasoft S.A.. All rights reserved.