org.exoplatform.services.scheduler
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


Method Summary
 void addCronJob(JobInfo jinfo, String exp)
           
 void addCronJob(JobInfo jinfo, String exp, org.quartz.JobDataMap jdatamap)
           
 void addGlobalJobListener(ComponentPlugin plugin)
           
 void addGlobalTriggerListener(ComponentPlugin plugin)
           
 void addJob(JobInfo jinfo, Date date)
           
 void addJobListener(ComponentPlugin plugin)
           
 void addPeriodJob(JobInfo jinfo, PeriodInfo pinfo)
           
 void addPeriodJob(JobInfo jinfo, PeriodInfo pinfo, org.quartz.JobDataMap jdatamap)
           
 void addTriggerListener(ComponentPlugin plugin)
           
 void executeJob(String jname, String jgroup, org.quartz.JobDataMap jdatamap)
           
 List getAllExcutingJobs()
           
 List getAllGlobalJobListener()
           
 List getAllGlobalTriggerListener()
           
 List getAllJobListener()
           
 List getAllJobs()
           
 List getAllTriggerListener()
           
 org.quartz.JobListener getGlobalJobListener(String name)
           
 org.quartz.TriggerListener getGlobalTriggerListener(String name)
           
 org.quartz.JobDetail getJob(JobInfo jobInfo)
           
 org.quartz.JobListener getJobListener(String name)
           
 org.quartz.TriggerListener getTriggerListener(String name)
           
 org.quartz.Trigger[] getTriggersOfJob(String jobName, String groupName)
           
 int getTriggerState(String triggerName, String triggerGroup)
           
 void pauseJob(String jobName, String groupName)
           
 void queueTask(Task task)
           
 boolean removeGlobalJobListener(String name)
           
 boolean removeGlobaTriggerListener(String name)
           
 boolean removeJob(JobInfo jinfo)
           
 boolean removeJobListener(String name)
           
 boolean removeTriggerListener(String name)
           
 Date rescheduleJob(String triggerName, String groupName, org.quartz.Trigger newTrigger)
           
 void resumeJob(String jobName, String groupName)
           
 

Method Detail

addJob

void addJob(JobInfo jinfo,
            Date date)
            throws Exception
Throws:
Exception

addPeriodJob

void addPeriodJob(JobInfo jinfo,
                  PeriodInfo pinfo)
                  throws Exception
Throws:
Exception

addCronJob

void addCronJob(JobInfo jinfo,
                String exp)
                throws Exception
Throws:
Exception

removeJob

boolean removeJob(JobInfo jinfo)
                  throws Exception
Throws:
Exception

addPeriodJob

void addPeriodJob(JobInfo jinfo,
                  PeriodInfo pinfo,
                  org.quartz.JobDataMap jdatamap)
                  throws Exception
Throws:
Exception

addCronJob

void addCronJob(JobInfo jinfo,
                String exp,
                org.quartz.JobDataMap jdatamap)
                throws Exception
Throws:
Exception

executeJob

void executeJob(String jname,
                String jgroup,
                org.quartz.JobDataMap jdatamap)
                throws Exception
Throws:
Exception

addGlobalJobListener

void addGlobalJobListener(ComponentPlugin plugin)
                          throws Exception
Throws:
Exception

getAllGlobalJobListener

List getAllGlobalJobListener()
                             throws Exception
Throws:
Exception

getGlobalJobListener

org.quartz.JobListener getGlobalJobListener(String name)
                                            throws Exception
Throws:
Exception

removeGlobalJobListener

boolean removeGlobalJobListener(String name)
                                throws Exception
Throws:
Exception

addJobListener

void addJobListener(ComponentPlugin plugin)
                    throws Exception
Throws:
Exception

getAllJobListener

List getAllJobListener()
                       throws Exception
Throws:
Exception

getJobListener

org.quartz.JobListener getJobListener(String name)
                                      throws Exception
Throws:
Exception

removeJobListener

boolean removeJobListener(String name)
                          throws Exception
Throws:
Exception

addGlobalTriggerListener

void addGlobalTriggerListener(ComponentPlugin plugin)
                              throws Exception
Throws:
Exception

getAllGlobalTriggerListener

List getAllGlobalTriggerListener()
                                 throws Exception
Throws:
Exception

getGlobalTriggerListener

org.quartz.TriggerListener getGlobalTriggerListener(String name)
                                                    throws Exception
Throws:
Exception

removeGlobaTriggerListener

boolean removeGlobaTriggerListener(String name)
                                   throws Exception
Throws:
Exception

getTriggerState

int getTriggerState(String triggerName,
                    String triggerGroup)
                    throws Exception
Throws:
Exception

addTriggerListener

void addTriggerListener(ComponentPlugin plugin)
                        throws Exception
Throws:
Exception

getAllTriggerListener

List getAllTriggerListener()
                           throws Exception
Throws:
Exception

getTriggerListener

org.quartz.TriggerListener getTriggerListener(String name)
                                              throws Exception
Throws:
Exception

removeTriggerListener

boolean removeTriggerListener(String name)
                              throws Exception
Throws:
Exception

queueTask

void queueTask(Task task)

getAllExcutingJobs

List getAllExcutingJobs()
                        throws Exception
Throws:
Exception

getAllJobs

List getAllJobs()
                throws Exception
Throws:
Exception

pauseJob

void pauseJob(String jobName,
              String groupName)
              throws Exception
Throws:
Exception

resumeJob

void resumeJob(String jobName,
               String groupName)
               throws Exception
Throws:
Exception

getTriggersOfJob

org.quartz.Trigger[] getTriggersOfJob(String jobName,
                                      String groupName)
                                      throws Exception
Throws:
Exception

rescheduleJob

Date rescheduleJob(String triggerName,
                   String groupName,
                   org.quartz.Trigger newTrigger)
                   throws Exception
Throws:
Exception

getJob

org.quartz.JobDetail getJob(JobInfo jobInfo)
                            throws Exception
Throws:
Exception


Copyright © 2009 eXo Platform SAS. All Rights Reserved.