|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.caching.impl.CacheImpl
org.apache.cocoon.caching.impl.EventAwareCacheImpl
This implementation holds all mappings between Events and PipelineCacheKeys in two MultiHashMap to facilitate efficient lookup by either as Key.
Field Summary |
Fields inherited from class org.apache.cocoon.caching.impl.CacheImpl |
manager, store |
Fields inherited from interface org.apache.cocoon.caching.Cache |
ROLE |
Constructor Summary | |
EventAwareCacheImpl()
|
Method Summary | |
void |
clear()
Clears the entire Cache, including all registered event-pipeline key mappings.. |
void |
dispose()
Release resources |
void |
initialize()
Get the EventRegistry ready, and make sure it does not contain orphaned Event/PipelineKey mappings. |
void |
processEvent(Event e)
Receive notification about the occurrence of an Event. |
void |
remove(Serializable key)
Un-register this key in the EventRegistry in addition to removing it from the Store |
void |
service(ServiceManager manager)
Look up the EventRegistry |
void |
store(Serializable key,
CachedResponse response)
When a new Pipeline key is stored, it needs to be have its SourceValidity objects examined. |
void |
veryifyEventCache()
Ensure that all PipelineCacheKeys registered to events still point to valid cache entries. |
Methods inherited from class org.apache.cocoon.caching.impl.CacheImpl |
containsKey, get, parameterize |
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 |
Constructor Detail |
public EventAwareCacheImpl()
Method Detail |
public void clear()
clear
in interface Cache
clear
in class CacheImpl
public void store(Serializable key, CachedResponse response) throws ProcessingException
SourceValidity
objects examined. For every
EventValidity
found, its Event
will be
registered with this key in the EventRegistry
.
AggregatedValidity
is handled recursively.
store
in interface Cache
store
in class CacheImpl
key
- the key used by the caching algorithm to identify the
requestresponse
- the cached response
ProcessingException
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class CacheImpl
ServiceException
public void remove(Serializable key)
remove
in interface Cache
remove
in class CacheImpl
key
- the key used by the caching algorithm to identify the
requestpublic void processEvent(Event e)
processEvent
in interface EventAware
e
- The Event to be processed.public void initialize() throws Exception
initialize
in interface Initializable
Exception
public void veryifyEventCache()
public void dispose()
dispose
in interface Disposable
dispose
in class CacheImpl
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |