Package org.bonitasoft.engine.scheduler
Interface SchedulerExecutor
- All Known Implementing Classes:
QuartzSchedulerExecutor
public interface SchedulerExecutor
- Author:
- Matthieu Chaffotte, Celine Souchet
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvoiddeleteJobs(String groupName) voidexecuteAgain(long jobId, String groupName, String jobName, boolean disallowConcurrentExecution, int delayInMillis) booleanisExistingJob(String jobName, String groupName) Check if a job exists.booleanbooleanbooleanmayFireAgain(String groupName, String jobName) voidvoidrescheduleJob(String triggerName, String groupName, Date triggerStartTime) Remove (delete) thewith 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.TriggervoidresumeJobs(String groupName) voidschedule(long jobId, String groupName, String jobName, Trigger trigger, boolean disallowConcurrentExecution) voidsetBOSSchedulerService(SchedulerServiceImpl schedulerService) voidshutdown()Note that once a scheduler is shutdown, it cannot be restarted without being re-instantiated.voidstart()Note that once a scheduler is shutdown, it cannot be restarted without being re-instantiated.
-
Method Details
-
isStarted
- Throws:
SSchedulerException
-
isShutdown
- Throws:
SSchedulerException
-
start
Note that once a scheduler is shutdown, it cannot be restarted without being re-instantiated.- Throws:
SSchedulerException- Since:
- 6.4.0
-
shutdown
Note that once a scheduler is shutdown, it cannot be restarted without being re-instantiated.- Throws:
SSchedulerException- Since:
- 6.4.0
-
mayFireAgain
- Throws:
SSchedulerException
-
rescheduleErroneousTriggers
- Throws:
SSchedulerException
-
delete
- Throws:
SSchedulerException
-
deleteJobs
- Throws:
SSchedulerException
-
getJobs
- Throws:
SSchedulerException
-
setBOSSchedulerService
-
getAllJobs
- Throws:
SSchedulerException
-
schedule
void schedule(long jobId, String groupName, String jobName, Trigger trigger, boolean disallowConcurrentExecution) throws SSchedulerException - Throws:
SSchedulerException
-
executeAgain
void executeAgain(long jobId, String groupName, String jobName, boolean disallowConcurrentExecution, int delayInMillis) throws SSchedulerException - Throws:
SSchedulerException
-
pauseJobs
- Throws:
SSchedulerException
-
resumeJobs
- Throws:
SSchedulerException
-
rescheduleJob
Date rescheduleJob(String triggerName, String groupName, Date triggerStartTime) throws SSchedulerException Remove (delete) thewith 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.Trigger- Parameters:
triggerName- The name of the trigger to replacegroupName- The group name of the trigger to replacetriggerStartTime- The start date of the new trigger- Returns:
nullif aTriggerwith 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.- Throws:
SSchedulerException- Since:
- 6.4.0
-
isExistingJob
Check if a job exists.- Parameters:
jobName- The name of the jobgroupName- The group of the job- Returns:
- True if the job exists, else False.
- Throws:
SSchedulerException- Since:
- 6.4.0
-