|
||||||||||
| 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
public class EventAwareCacheImpl
This implementation holds all mappings between Events and PipelineCacheKeys in two MultiValueMaps 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 |
parameterize(Parameters parameters)
|
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 |
start()
starts cache-cleaner timer task scheduling |
void |
stop()
stops cache-cleaner timer task scheduling |
void |
store(Serializable key,
CachedResponse response)
When a new Pipeline key is stored, it needs to have it's SourceValidity objects examined. |
void |
verifyEventCache()
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 |
| 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 parameterize(Parameters parameters)
throws ParameterException
parameterize in interface Parameterizableparameterize in class CacheImplParameterExceptionpublic void clear()
clear in interface Cacheclear in class CacheImpl
public void store(Serializable key,
CachedResponse response)
throws ProcessingException
SourceValidity objects examined. For every
EventValidity found, it's Event will be
registered with this key in the EventRegistry.
AggregatedValidity is handled recursively.
store in interface Cachestore in class CacheImplkey - 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 Serviceableservice in class CacheImplServiceExceptionpublic void remove(Serializable key)
remove in interface Cacheremove in class CacheImplkey - the key used by the caching algorithm to identify the
requestpublic void processEvent(Event e)
processEvent in interface EventAwaree - The Event to be processed.
public void initialize()
throws Exception
initialize in interface InitializableExceptionpublic void verifyEventCache()
public void dispose()
dispose in interface Disposabledispose in class CacheImpl
public void start()
throws Exception
start in interface StartableExceptionpublic void stop()
stop in interface Startable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||