Package org.bonitasoft.engine.scheduler
Interface SchedulerExecutor
-
- All Known Implementing Classes:
QuartzSchedulerExecutor
public interface SchedulerExecutor- Author:
- Matthieu Chaffotte, Celine Souchet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandelete(java.lang.String jobName, java.lang.String groupName)voiddeleteJobs(java.lang.String groupName)voidexecuteAgain(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)booleanisExistingJob(java.lang.String jobName, java.lang.String groupName)Check if a job exists.booleanisShutdown()booleanisStarted()booleanmayFireAgain(java.lang.String groupName, java.lang.String jobName)voidpauseJobs(java.lang.String groupName)voidrescheduleErroneousTriggers()java.util.DaterescheduleJob(java.lang.String triggerName, java.lang.String groupName, java.util.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(java.lang.String groupName)voidschedule(long jobId, java.lang.String groupName, java.lang.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 Detail
-
isStarted
boolean isStarted() throws SSchedulerException- Throws:
SSchedulerException
-
isShutdown
boolean isShutdown() throws SSchedulerException- Throws:
SSchedulerException
-
start
void start() throws SSchedulerExceptionNote that once a scheduler is shutdown, it cannot be restarted without being re-instantiated.- Throws:
SSchedulerException- Since:
- 6.4.0
-
shutdown
void shutdown() throws SSchedulerExceptionNote that once a scheduler is shutdown, it cannot be restarted without being re-instantiated.- Throws:
SSchedulerException- Since:
- 6.4.0
-
mayFireAgain
boolean mayFireAgain(java.lang.String groupName, java.lang.String jobName) throws SSchedulerException- Throws:
SSchedulerException
-
rescheduleErroneousTriggers
void rescheduleErroneousTriggers() throws SSchedulerException- Throws:
SSchedulerException
-
delete
boolean delete(java.lang.String jobName, java.lang.String groupName) throws SSchedulerException- Throws:
SSchedulerException
-
deleteJobs
void deleteJobs(java.lang.String groupName) throws SSchedulerException- Throws:
SSchedulerException
-
getJobs
java.util.List<java.lang.String> getJobs(java.lang.String groupName) throws SSchedulerException- Throws:
SSchedulerException
-
setBOSSchedulerService
void setBOSSchedulerService(SchedulerServiceImpl schedulerService)
-
getAllJobs
java.util.List<java.lang.String> getAllJobs() throws SSchedulerException- Throws:
SSchedulerException
-
schedule
void schedule(long jobId, java.lang.String groupName, java.lang.String jobName, Trigger trigger, boolean disallowConcurrentExecution) throws SSchedulerException- Throws:
SSchedulerException
-
executeAgain
void executeAgain(long jobId, java.lang.String groupName, java.lang.String jobName, boolean disallowConcurrentExecution, int delayInMillis) throws SSchedulerException- Throws:
SSchedulerException
-
pauseJobs
void pauseJobs(java.lang.String groupName) throws SSchedulerException- Throws:
SSchedulerException
-
resumeJobs
void resumeJobs(java.lang.String groupName) throws SSchedulerException- Throws:
SSchedulerException
-
rescheduleJob
java.util.Date rescheduleJob(java.lang.String triggerName, java.lang.String groupName, java.util.Date triggerStartTime) throws SSchedulerExceptionRemove (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
boolean isExistingJob(java.lang.String jobName, java.lang.String groupName) throws SSchedulerExceptionCheck 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
-
-