| java.lang.Object org.apache.lenya.cms.scheduler.ServletJob org.apache.lenya.cms.scheduler.TaskJob
TaskJob | public class TaskJob extends ServletJob (Code) | | A TaskJob is a Job that executes a Task. The task ID is obtained from the task-id
request parameter.
|
Method Summary | |
public JobDataMap | createJobData(HttpServletRequest request) Creates the job data for a job.
Parameters: request - The request. | public void | execute(JobExecutionContext context)
Called by the
org.quartz.Scheduler when a
org.quartz.Trigger fires that is associated with the Job . | public JobDetail | load(Element jobElement, String jobGroup, String servletContextPath) Loads a job details object from an XML element. | public Element | save(NamespaceHelper helper, JobDetail jobDetail) Save a job detail
Parameters: jobDetail - The job detail to save Parameters: helper - namespace helper throws: SchedulerException - when something went wrong. | protected Map | stripPrefixes(Map wrapperMap) Un-prefix the parameters.
Parameters: wrapperMap - the prefixed parameters. |
createJobData | public JobDataMap createJobData(HttpServletRequest request) throws SchedulerException(Code) | | Creates the job data for a job.
Parameters: request - The request. A job data map. throws: SchedulerException - when something went wrong. |
execute | public void execute(JobExecutionContext context) throws JobExecutionException(Code) | |
Called by the
org.quartz.Scheduler when a
org.quartz.Trigger fires that is associated with the Job .
Parameters: context - The context throws: JobExecutionException - if there is an exception while executing the job. |
load | public JobDetail load(Element jobElement, String jobGroup, String servletContextPath) throws SchedulerException(Code) | | Loads a job details object from an XML element.
Parameters: jobElement - The XML element. Parameters: jobGroup - The job group the job belongs to. Parameters: servletContextPath - The servlet context path. throws: SchedulerException - when something went wrong. A job details object. |
save | public Element save(NamespaceHelper helper, JobDetail jobDetail) throws SchedulerException(Code) | | Save a job detail
Parameters: jobDetail - The job detail to save Parameters: helper - namespace helper throws: SchedulerException - when something went wrong. The job element |
stripPrefixes | protected Map stripPrefixes(Map wrapperMap) throws SchedulerException(Code) | | Un-prefix the parameters.
Parameters: wrapperMap - the prefixed parameters. the parameters throws: SchedulerException - when something went wrong. |
|
|