org.apache.cocoon.components.source.impl
Class DelayRefresher

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.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 $

Field Summary
protected  boolean changed
           
protected  Map entries
           
protected  ServiceManager manager
           
protected  SourceResolver resolver
           
protected  JobScheduler scheduler
           
protected  String updateTarget
           
protected  File workDir
           
protected  Source writeSource
           
 
Fields inherited from interface org.apache.cocoon.components.source.impl.Refresher
ROLE
 
Fields inherited from interface org.apache.cocoon.components.cron.CronJob
ROLE
 
Constructor Summary
DelayRefresher()
           
 
Method Summary
 void contextualize(Context context)
           
 void dispose()
           
 void execute(String name)
          Persists the job configurations.
 void parameterize(Parameters parameters)
           
 void refresh(IdentifierCacheKey cacheKey, String uri, String cacheRole, Parameters parameters)
          Add a uri to the Refresher.
 void service(ServiceManager manager)
           
 
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

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

DelayRefresher

public DelayRefresher()
Method Detail

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 content
uri - The uri to cache, every valid protocol can be used (except the Cocoon protocol!)
cacheRole - The role of the cache component to store the content
parameters - 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.