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 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.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
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.
-
-
-
Method Detail
-
isStarted
boolean isStarted() throws SSchedulerException
- Throws:
SSchedulerException
-
isShutdown
boolean isShutdown() throws SSchedulerException
- Throws:
SSchedulerException
-
start
void start() throws SSchedulerException
Note that once a scheduler is shutdown, it cannot be restarted without being re-instantiated.- Throws:
SSchedulerException
- Since:
- 6.4.0
-
shutdown
void shutdown() throws SSchedulerException
Note 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 SSchedulerException
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.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:
null
if aTrigger
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.- Throws:
SSchedulerException
- Since:
- 6.4.0
-
isExistingJob
boolean isExistingJob(java.lang.String jobName, java.lang.String groupName) throws SSchedulerException
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
-
-