org.apache.cocoon.components.cron
Class TestCronJob

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.components.cron.ServiceableCronJob
          extended by 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

Field Summary
static String PARAMETER_MESSAGE
          Parameter key for the message
static String PARAMETER_PIPELINE
          Parameter key for the pipeline to be called
static String PARAMETER_SLEEP
          Parameter key for the sleep value
 
Fields inherited from class org.apache.cocoon.components.cron.ServiceableCronJob
manager
 
Fields inherited from interface org.apache.cocoon.components.cron.CronJob
ROLE
 
Constructor Summary
TestCronJob()
           
 
Method Summary
 void configure(Configuration config)
           
 void execute(String name)
          This methods get called to allow an implementing class to do its supposed job
 void setup(Parameters params, Map objects)
          Setup CronJob with additional information first
 
Methods inherited from class org.apache.cocoon.components.cron.ServiceableCronJob
service
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

TestCronJob

public TestCronJob()
Method Detail

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 Parameters
objects - 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.