Method Summary |
|
protected void | addJob(String jobGroup, Date startTime, Class jobClass, JobDataMap map) Adds a job. |
public void | addJob(String jobGroup, Date startTime, HttpServletRequest request) Adds a job. |
protected void | addJob(JobDetail detail, Trigger trigger) Adds a job. |
protected void | addJob(JobDetail detail) Adds a job. |
protected void | deleteJob(String jobName, String jobGroup) Deletes a job. |
public void | deleteJobs(org.apache.lenya.cms.publication.Document document) Deletes the jobs for a certain document. |
protected JobWrapper[] | getJobWrappers(String jobGroupName) Returns the job wrappers for a certain job group.
Parameters: jobGroupName - The job group. |
protected static synchronized String | getNextJobId() Returns the next job ID to use (calculated using the current time). |
protected Publication | getPublication(String jobGroup) Returns the publication for a job group.
Parameters: jobGroup - A job group. |
protected Configuration | getSchedulerConfiguration() Reads the scheduler configuration. |
protected String | getSchedulerConfigurationPath() Returns the scheduler configuration path. |
protected String | getServletContextPath() Returns the servlet context path. |
public Document | getSnapshot(String[] jobGroupNames) Return an XML description certain job groups.
Parameters: jobGroupNames - The job group names. |
protected Element | getSnapshot(NamespaceHelper helper, String group) Returns the snapshot of a certain job group.
Parameters: helper - The namespace helper. Parameters: group - The job group. |
public Document | getSnapshot() Return an xml description of all scheduled jobs. |
protected SchedulerStore | getStore() Returns the store. |
protected Trigger | getTrigger(String jobName, String jobGroup) Returns the trigger of a certain job.
Parameters: jobName - The job name. Parameters: jobGroup - The job group. |
protected Element | getTriggerTypes(NamespaceHelper helper) Returns an XML element containing the trigger types.
Parameters: helper - The namespace helper of the document that shall contain the element. |
public void | modifyJob(String _jobId, String jobGroup, Date startTime) Modifies the execution time of a job. |
public void | restoreJobs(String jobGroup) Restores the jobs of a certain job group from the snapshot file. |
public void | shutdown() Shuts down the scheduler. |