|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.lateral.LateralCacheAbstractManager
Creates lateral caches. Lateral caches are primarily used for removing non laterally configured caches. Non laterally configured cache regions should still be able to participate in removal. But if there is a non laterally configured cache hub, then lateral removals may be necessary. For flat webserver production environments, without a strong machine at the app server level, distribution and search may need to occur at the lateral cache level. This is currently not implemented in the lateral cache.
Field Summary | |
protected java.util.Map |
caches
Each manager instance has caches. |
protected ILateralCacheAttributes |
lca
Description of the Field |
Fields inherited from interface org.apache.jcs.engine.behavior.ICacheType |
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE |
Constructor Summary | |
LateralCacheAbstractManager()
|
Method Summary | |
void |
addLateralCacheListener(java.lang.String cacheName,
ILateralCacheListener listener)
Adds the lateral cache listener to the underlying cache-watch service. |
void |
fixCaches(ILateralCacheService lateralService,
ILateralCacheObserver lateralWatch)
Fixes up all the caches managed by this cache manager. |
abstract AuxiliaryCache |
getCache(java.lang.String cacheName)
Called to access a precreated region or construct one with defaults. |
java.util.Map |
getCaches()
This is a temporary solution that allos the monitor to get caches from an instance of a manager. |
int |
getCacheType()
Gets the cacheType attribute of the LateralCacheManager object |
java.lang.String |
getStats()
Gets the stats attribute of the LateralCacheManager object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.jcs.auxiliary.lateral.behavior.ILateralCacheManager |
fixService, getInstances |
Field Detail |
protected final java.util.Map caches
protected ILateralCacheAttributes lca
Constructor Detail |
public LateralCacheAbstractManager()
Method Detail |
public void addLateralCacheListener(java.lang.String cacheName, ILateralCacheListener listener) throws java.io.IOException
cacheName
- The feature to be added to the LateralCacheListener attributelistener
- The feature to be added to the LateralCacheListener attribute
java.io.IOException
public abstract AuxiliaryCache getCache(java.lang.String cacheName)
After getting the manager instance for a server, the factory gets a cache for the region name it is constructing.
There should be one manager per server and one cache per region per manager.
getCache
in interface AuxiliaryCacheManager
cacheName
-
public int getCacheType()
getCacheType
in interface ICacheType
public java.lang.String getStats()
public void fixCaches(ILateralCacheService lateralService, ILateralCacheObserver lateralWatch)
fixCaches
in interface ILateralCacheManager
lateralService
- lateralWatch
- public java.util.Map getCaches()
ILateralCacheManager
getCaches
in interface ILateralCacheManager
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |