org.apache.cocoon.components.source.impl
Class DelayRefresher
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.source.impl.DelayRefresher
- All Implemented Interfaces:
- Contextualizable, CronJob, Disposable, LogEnabled, Parameterizable, Refresher, Serviceable, ThreadSafe
- public class DelayRefresher
- extends AbstractLogEnabled
- implements Contextualizable, Serviceable, Parameterizable, Disposable, ThreadSafe, Refresher, CronJob
Default implementation of the refresher.
- Since:
- 2.1.1
- Version:
- CVS $Id: DelayRefresher.java 156626 2005-03-09 09:43:39Z cziegeler $
Fields inherited from interface org.apache.cocoon.components.source.impl.Refresher |
ROLE |
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 |
manager
protected ServiceManager manager
resolver
protected SourceResolver resolver
scheduler
protected JobScheduler scheduler
updateTarget
protected String updateTarget
entries
protected Map entries
workDir
protected File workDir
writeSource
protected Source writeSource
changed
protected boolean changed
DelayRefresher
public DelayRefresher()
contextualize
public void contextualize(Context context)
throws ContextException
- Specified by:
contextualize
in interface Contextualizable
- Throws:
ContextException
service
public void service(ServiceManager manager)
throws ServiceException
- Specified by:
service
in interface Serviceable
- Throws:
ServiceException
parameterize
public void parameterize(Parameters parameters)
throws ParameterException
- Specified by:
parameterize
in interface Parameterizable
- Throws:
ParameterException
dispose
public void dispose()
- Specified by:
dispose
in interface Disposable
refresh
public void refresh(IdentifierCacheKey cacheKey,
String uri,
String cacheRole,
Parameters parameters)
throws SourceException
- Description copied from interface:
Refresher
- Add a uri to the Refresher.
- Specified by:
refresh
in interface Refresher
- Parameters:
cacheKey
- The key used to cache the contenturi
- The uri to cache, every valid protocol can be used (except the Cocoon protocol!)cacheRole
- The role of the cache component to store the contentparameters
- Additional parameters such as a timout value
- Throws:
SourceException
execute
public void execute(String name)
- Persists the job configurations.
- Specified by:
execute
in interface CronJob
- Parameters:
name
- the name given to this job
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.