org.apache.cocoon.components.source.impl
Class UpdateTarget
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.source.impl.UpdateTarget
- All Implemented Interfaces:
- ConfigurableCronJob, CronJob, LogEnabled, Serviceable
- public class UpdateTarget
- extends AbstractLogEnabled
- implements Serviceable, ConfigurableCronJob
A target updating a cache entry.
This target requires several parameters:
-
uri (String)
:
The uri to cache, every valid protocol can be used, except the Cocoon protocol!
-
cache-role (String)
:
The role of the cache component to store the content
-
cache-expires (long)
:
The time in seconds the cached content is valid
-
cache-name (String)
:
The key used to cache the content
- Since:
- 2.1.1
- Version:
- CVS $Id: UpdateTarget.java 30941 2004-07-29 19:56:58Z vgritsenko $
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 |
UpdateTarget
public UpdateTarget()
service
public void service(ServiceManager manager)
throws ServiceException
- Specified by:
service
in interface Serviceable
- Throws:
ServiceException
setup
public void setup(Parameters pars,
Map objects)
- Description copied from interface:
ConfigurableCronJob
- Setup CronJob with additional information first
- Specified by:
setup
in interface ConfigurableCronJob
- Parameters:
pars
- Any Parametersobjects
- Some additional Objects
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
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.