org.apache.cocoon.components.cron
Class TestCronJob
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.cron.ServiceableCronJob
org.apache.cocoon.components.cron.TestCronJob
- All Implemented Interfaces:
- Configurable, LogEnabled, Serviceable, ConfigurableCronJob, CronJob
public class TestCronJob
- extends ServiceableCronJob
- implements Configurable, ConfigurableCronJob
A simple test CronJob which also calls a pipeline internally.
- Since:
- 2.1.1
- Version:
- CVS $Id: TestCronJob.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Giacomo Pati, Reinhard Poetz
Fields inherited from interface org.apache.cocoon.components.cron.CronJob |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PARAMETER_MESSAGE
public static final String PARAMETER_MESSAGE
- Parameter key for the message
- See Also:
- Constant Field Values
PARAMETER_SLEEP
public static final String PARAMETER_SLEEP
- Parameter key for the sleep value
- See Also:
- Constant Field Values
PARAMETER_PIPELINE
public static final String PARAMETER_PIPELINE
- Parameter key for the pipeline to be called
- See Also:
- Constant Field Values
TestCronJob
public TestCronJob()
configure
public void configure(Configuration config)
throws ConfigurationException
- Specified by:
configure
in interface Configurable
- Throws:
ConfigurationException
- See Also:
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)
execute
public void execute(String name)
- Description copied from interface:
CronJob
- This methods get called to allow an implementing class to do its supposed job
- Specified by:
execute
in interface CronJob
- Parameters:
name
- the name given to this job- See Also:
CronJob.execute(java.lang.String)
setup
public void setup(Parameters params,
Map objects)
- Description copied from interface:
ConfigurableCronJob
- Setup CronJob with additional information first
- Specified by:
setup
in interface ConfigurableCronJob
- Parameters:
params
- Any Parametersobjects
- Some additional Objects- See Also:
ConfigurableCronJob.setup(org.apache.avalon.framework.parameters.Parameters, java.util.Map)
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.