Interface JobSchedulerService
- All Known Implementing Classes:
JobSchedulerServiceImpl
public interface JobSchedulerService
Created by The eXo Platform SAS Author : Hoa Pham hoapham@exoplatform.com Oct
5, 2005
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe group of the jobs registered once the container started, such as the scheduled methods of the Spring contexts. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCronJob(org.exoplatform.container.component.ComponentPlugin plugin) voidaddCronJob(JobInfo jinfo, String exp) voidaddCronJob(JobInfo jinfo, String exp, org.quartz.JobDataMap jdatamap) voidaddGlobalJobListener(org.exoplatform.container.component.ComponentPlugin plugin) voidaddGlobalTriggerListener(org.exoplatform.container.component.ComponentPlugin plugin) voidvoidvoidaddPeriodJob(org.exoplatform.container.component.ComponentPlugin plugin) voidaddPeriodJob(JobInfo jinfo, PeriodInfo pinfo) voidaddPeriodJob(JobInfo jinfo, PeriodInfo pinfo, org.quartz.JobDataMap jdatamap) voidvoidexecuteJob(String jname, String jgroup, org.quartz.JobDataMap jdatamap) List<org.quartz.JobExecutionContext> List<org.quartz.JobListener> List<org.quartz.TriggerListener> List<org.quartz.JobListener> List<org.quartz.JobDetail> List<org.quartz.TriggerListener> org.quartz.JobListenergetGlobalJobListener(String name) org.quartz.TriggerListenerorg.quartz.JobDetailorg.quartz.JobListenergetJobListener(String name) org.quartz.TriggerListenergetTriggerListener(String name) org.quartz.Trigger[]getTriggersOfJob(String jobName, String groupName) org.quartz.Trigger.TriggerStategetTriggerState(String jobName, String groupName) voidvoidbooleanbooleanbooleanbooleanremoveJobListener(String name) booleanremoveTriggerListener(String name) rescheduleJob(String jobName, String groupName, org.quartz.Trigger newTrigger) booleanresume()Resumes all the registered jobsvoidbooleansuspend()Suspends all the registered jobs
-
Field Details
-
RUNTIME_JOB_GROUP
The group of the jobs registered once the container started, such as the scheduled methods of the Spring contexts. When it starts, the service deletes the stored jobs that no plugin registered before it, but keeps those of this group: their registrar registers them again once the container started, and a job it no longer declares stays stored until it is removed withremoveJob(JobInfo).- See Also:
-
-
Method Details
-
addJob
-
addPeriodJob
- Throws:
Exception
-
addPeriodJob
-
addCronJob
-
addCronJob
-
removeJob
-
addPeriodJob
- Throws:
Exception
-
addCronJob
-
executeJob
-
addGlobalJobListener
-
getAllGlobalJobListener
-
getGlobalJobListener
-
removeGlobalJobListener
-
addJobListener
- Throws:
Exception
-
getAllJobListener
-
getJobListener
-
removeJobListener
-
addGlobalTriggerListener
-
getAllGlobalTriggerListener
-
getGlobalTriggerListener
-
removeGlobaTriggerListener
-
getTriggerState
-
addTriggerListener
- Throws:
Exception
-
getAllTriggerListener
-
getTriggerListener
-
removeTriggerListener
-
queueTask
-
getAllExcutingJobs
-
getAllJobs
-
pauseJob
-
resumeJob
-
getTriggersOfJob
-
rescheduleJob
-
getJob
-
suspend
boolean suspend()Suspends all the registered jobs- Returns:
trueif the jobs could be suspended,falseotherwise
-
resume
boolean resume()Resumes all the registered jobs- Returns:
trueif the jobs could be resumed,falseotherwise
-