Package org.bonitasoft.engine.scheduler
Interface SchedulerExecutor
- All Known Implementing Classes:
QuartzSchedulerExecutor
public interface SchedulerExecutor
- Author:
- Matthieu Chaffotte, Celine Souchet
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidvoidexecuteAgain(long jobId, String jobName, boolean disallowConcurrentExecution, int delayInMillis) getJobs()booleanisExistingJob(String jobName) Check if a job exists.booleanbooleanbooleanmayFireAgain(String jobName) voidvoidrescheduleJob(String triggerName, 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 specified) - however, the new trigger need not have the same name as the old trigger.TriggervoidvoidvoidsetBOSSchedulerService(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
-
schedule
void schedule(long jobId, String jobName, Trigger trigger, boolean disallowConcurrentExecution) throws SSchedulerException - Throws:
SSchedulerException
-
executeAgain
void executeAgain(long jobId, String jobName, boolean disallowConcurrentExecution, int delayInMillis) throws SSchedulerException - Throws:
SSchedulerException
-
pauseJobs
- Throws:
SSchedulerException
-
resumeJobs
- Throws:
SSchedulerException
-
rescheduleJob
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 specified) - however, the new trigger need not have the same name as the old trigger.Trigger- Parameters:
triggerName- The name of the trigger to replacetriggerStartTime- The start date of the new trigger- Returns:
nullif aTriggerwith the given name 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 job- Returns:
- True if the job exists, else False.
- Throws:
SSchedulerException- Since:
- 6.4.0
-