public interface SchedulerExecutor
| Modifier and Type | Method and 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. |
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.
|
boolean isStarted()
throws SSchedulerException
SSchedulerExceptionboolean isShutdown()
throws SSchedulerException
SSchedulerExceptionvoid start()
throws SSchedulerException
SSchedulerExceptionvoid shutdown()
throws SSchedulerException
SSchedulerExceptionboolean mayFireAgain(java.lang.String groupName,
java.lang.String jobName)
throws SSchedulerException
SSchedulerExceptionvoid rescheduleErroneousTriggers()
throws SSchedulerException
SSchedulerExceptionboolean delete(java.lang.String jobName,
java.lang.String groupName)
throws SSchedulerException
SSchedulerExceptionvoid deleteJobs(java.lang.String groupName)
throws SSchedulerException
SSchedulerExceptionjava.util.List<java.lang.String> getJobs(java.lang.String groupName)
throws SSchedulerException
SSchedulerExceptionvoid setBOSSchedulerService(SchedulerServiceImpl schedulerService)
java.util.List<java.lang.String> getAllJobs()
throws SSchedulerException
SSchedulerExceptionvoid schedule(long jobId,
java.lang.String groupName,
java.lang.String jobName,
Trigger trigger,
boolean disallowConcurrentExecution)
throws SSchedulerException
SSchedulerExceptionvoid executeAgain(long jobId,
java.lang.String groupName,
java.lang.String jobName,
boolean disallowConcurrentExecution,
int delayInMillis)
throws SSchedulerException
SSchedulerExceptionvoid pauseJobs(java.lang.String groupName)
throws SSchedulerException
SSchedulerExceptionvoid resumeJobs(java.lang.String groupName)
throws SSchedulerException
SSchedulerExceptionjava.util.Date rescheduleJob(java.lang.String triggerName,
java.lang.String groupName,
java.util.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.SSchedulerExceptionboolean isExistingJob(java.lang.String jobName,
java.lang.String groupName)
throws SSchedulerException
jobName - The name of the jobgroupName - The group of the jobSSchedulerException