| org.apache.cocoon.components.cron.QuartzJobScheduler
All known Subclasses: org.apache.cocoon.components.cron.CocoonQuartzJobScheduler,
QuartzJobScheduler | public class QuartzJobScheduler extends AbstractLogEnabled implements JobScheduler,Component,ThreadSafe,Serviceable,Configurable,Startable,Disposable,Contextualizable,Initializable(Code) | | This component can either schedule jobs or directly execute one.
author: Giacomo Pati version: CVS $Id: QuartzJobScheduler.java 433543 2006-08-22 06:22:54Z crossley $ since: 2.1.1 |
Method Summary | |
public void | addJob(String name, Object job, String cronSpec, boolean canRunConcurrently, Parameters params, Map objects) | public void | addJob(String name, String jobrole, String cronSpec, boolean canRunConcurrently, Parameters params, Map objects) | public void | addJob(String name, Object job, String cronSpec, boolean canRunConcurrently) | public void | addJob(String name, String jobrole, String cronSpec, boolean canRunConcurrently) | public void | addPeriodicJob(String name, String jobrole, long period, boolean canRunConcurrently, Parameters params, Map objects) Schedule a period job. | public void | addPeriodicJob(String name, Object job, long period, boolean canRunConcurrently, Parameters params, Map objects) Schedule a periodic job. | public void | configure(Configuration config) | public void | contextualize(Context context) | protected JobDetail | createJobDetail(String name, JobDataMap jobDataMap) | protected Job | createJobExecutor() | public void | dispose() | public boolean | fireJob(Object job) | public boolean | fireJob(String jobrole) | public boolean | fireJob(Object job, Parameters params, Map objects) | public boolean | fireJob(String jobrole, Parameters params, Map objects) | public void | fireJobAt(Date date, String name, Object job) | public void | fireJobAt(Date date, String name, String jobrole) | public void | fireJobAt(Date date, String name, Object job, Parameters params, Map objects) | public void | fireJobAt(Date date, String name, String jobrole, Parameters params, Map objects) | public String[] | getJobNames() | public JobSchedulerEntry | getJobSchedulerEntry(String jobname) | protected JobDataMap | initDataMap(JobDataMap jobDataMap, String jobName, boolean concurent, Parameters params, Map objects) | public void | initialize() | public void | removeJob(String name) | public void | service(ServiceManager manager) | public void | start() | public void | stop() |
DATA_MAP_CONTEXT | final static String DATA_MAP_CONTEXT(Code) | | Map key for the avalon context
|
DATA_MAP_KEY_ISRUNNING | final static String DATA_MAP_KEY_ISRUNNING(Code) | | Map key for the run status
|
DATA_MAP_LOGGER | final static String DATA_MAP_LOGGER(Code) | | Map key for the logger
|
DATA_MAP_MANAGER | final static String DATA_MAP_MANAGER(Code) | | Map key for the service manager
|
DATA_MAP_NAME | final static String DATA_MAP_NAME(Code) | | Map key for the job name
|
DATA_MAP_OBJECT | final static String DATA_MAP_OBJECT(Code) | | Map key for the job object
|
DATA_MAP_OBJECTMAP | final static String DATA_MAP_OBJECTMAP(Code) | | Map key for additional Object Map
|
DATA_MAP_PARAMETERS | final static String DATA_MAP_PARAMETERS(Code) | | Map key for additional Parameters
|
DATA_MAP_ROLE | final static String DATA_MAP_ROLE(Code) | | Map key for the component role
|
DATA_MAP_RUN_CONCURRENT | final static String DATA_MAP_RUN_CONCURRENT(Code) | | Map key for the concurrent run property
|
DEFAULT_QUARTZ_JOB_GROUP | final static String DEFAULT_QUARTZ_JOB_GROUP(Code) | | The group name
|
DEFAULT_QUARTZ_SCHEDULER_NAME | final static String DEFAULT_QUARTZ_SCHEDULER_NAME(Code) | | The scheduler name
|
addJob | public void addJob(String name, Object job, String cronSpec, boolean canRunConcurrently, Parameters params, Map objects) throws CascadingException(Code) | | |
addJob | public void addJob(String name, String jobrole, String cronSpec, boolean canRunConcurrently, Parameters params, Map objects) throws CascadingException(Code) | | |
addJob | public void addJob(String name, Object job, String cronSpec, boolean canRunConcurrently) throws CascadingException(Code) | | |
addJob | public void addJob(String name, String jobrole, String cronSpec, boolean canRunConcurrently) throws CascadingException(Code) | | |
addPeriodicJob | public void addPeriodicJob(String name, String jobrole, long period, boolean canRunConcurrently, Parameters params, Map objects) throws CascadingException(Code) | | Schedule a period job. Note that if a Job already has same name then it is overwritten.
Parameters: name - the name of the job Parameters: jobrole - The Avalon components role name of the job itself Parameters: period - Every period seconds this job is started Parameters: canRunConcurrently - whether this job can run even previous scheduled runs are still running Parameters: params - additional Parameters to be passed to the job Parameters: objects - additional objects to be passed to the job throws: CascadingException - in case of failures |
addPeriodicJob | public void addPeriodicJob(String name, Object job, long period, boolean canRunConcurrently, Parameters params, Map objects) throws CascadingException(Code) | | Schedule a periodic job. The job is started the first time when the period has passed. Note that if a job with
the same name has already beed added it is overwritten.
Parameters: name - the name of the job Parameters: job - The job object itself. It must implement either CronJob, Runnable or might also be an implementationspecific class (i.e. org.quartz.Job) Parameters: period - Every period seconds this job is started Parameters: canRunConcurrently - whether this job can run even previous scheduled runs are still running Parameters: params - Additional Parameters to setup CronJob Parameters: objects - A Map with additional object to setup CronJob |
configure | public void configure(Configuration config) throws ConfigurationException(Code) | | |
contextualize | public void contextualize(Context context) throws ContextException(Code) | | |
createJobDetail | protected JobDetail createJobDetail(String name, JobDataMap jobDataMap)(Code) | | |
createJobExecutor | protected Job createJobExecutor()(Code) | | |
dispose | public void dispose()(Code) | | |
fireJob | public boolean fireJob(Object job, Parameters params, Map objects) throws CascadingException(Code) | | |
fireJob | public boolean fireJob(String jobrole, Parameters params, Map objects) throws CascadingException(Code) | | |
fireJobAt | public void fireJobAt(Date date, String name, Object job, Parameters params, Map objects) throws CascadingException(Code) | | |
fireJobAt | public void fireJobAt(Date date, String name, String jobrole, Parameters params, Map objects) throws CascadingException(Code) | | |
initDataMap | protected JobDataMap initDataMap(JobDataMap jobDataMap, String jobName, boolean concurent, Parameters params, Map objects)(Code) | | |
service | public void service(ServiceManager manager) throws ServiceException(Code) | | |
|
|