|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.webmacro.resource.GenerationalCacheManager
The GenerationalCacheManager implements the CacheManager interface for WebMacro providers which extend the CachingProvider base class. This implementation encapsulates the use of VFC provided by Open Doors Software and incorporated into WM.
Constructor Summary | |
GenerationalCacheManager()
|
Method Summary | |
void |
destroy()
Same as defined in Provider |
void |
flush()
Same as defined in Provider |
java.lang.Object |
get(java.lang.Object query)
Get the object associated with the specific query, trying to look it up in a cache. |
java.lang.Object |
get(java.lang.Object query,
ResourceLoader helper)
Get the cached value and load it if it is not present or reloading is required. |
long[] |
getMetrics()
Returns cache instrumentation statistics. |
java.lang.String |
getResourceType()
Returns the wm type of resource it is caching. |
void |
init(Broker b,
Settings config,
java.lang.String resourceType)
Same as defined in Provider, except with an additional type parameter so it knows what type of resource it is caching |
void |
invalidate(java.lang.Object query)
Invalidate an entry in the cache. |
void |
put(java.lang.Object query,
java.lang.Object resource)
Put an object in the cache |
boolean |
supportsReload()
This manager supports reloading and so this returns true. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GenerationalCacheManager()
Method Detail |
public void init(Broker b, Settings config, java.lang.String resourceType) throws InitException
CacheManager
init
in interface CacheManager
public void flush()
CacheManager
flush
in interface CacheManager
public void destroy()
CacheManager
destroy
in interface CacheManager
public java.lang.Object get(java.lang.Object query, ResourceLoader helper) throws ResourceException
get
in interface CacheManager
public java.lang.Object get(java.lang.Object query)
get
in interface CacheManager
public void put(java.lang.Object query, java.lang.Object resource)
put
in interface CacheManager
public void invalidate(java.lang.Object query)
invalidate
in interface CacheManager
public boolean supportsReload()
supportsReload
in interface CacheManager
public java.lang.String getResourceType()
public long[] getMetrics()
These statistics will be zero if the cache implementation is not using the instrumented get() routine.
Use of this routine is normally reserved for performance analysis and depends on recompiling org.opendoors.cache.immutable.CacheImpl
org.opendoors.cache.impl.CacheImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |