|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.lateral.LateralCacheAbstractManager
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager
Creates lateral caches. Lateral caches are primarily used for removing non laterally configured caches. Non laterally configured cache regions should still bea ble 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 static java.util.Map |
instances
Address to instance map. |
protected ITCPLateralCacheAttributes |
lca
ITCPLateralCacheAttributes |
Fields inherited from class org.apache.jcs.auxiliary.lateral.LateralCacheAbstractManager |
caches |
Fields inherited from interface org.apache.jcs.engine.behavior.ICacheType |
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE |
Method Summary | |
void |
addLateralCacheListener(java.lang.String cacheName,
ILateralCacheListener listener)
Adds the lateral cache listener to the underlying cache-watch service. |
java.lang.Object |
fixService()
The restore calls thsi on the manger if a cache if found to be in error. |
AuxiliaryCache |
getCache(java.lang.String cacheName)
Called to access a precreated region or construct one with defaults. |
static LateralTCPCacheManager |
getInstance(ITCPLateralCacheAttributes lca,
ICompositeCacheManager cacheMgr)
Returns an instance of the LateralCacheManager. |
java.util.Map |
getInstances()
This is a temporary solution that allos the monitor to get the instances of a manager. |
Methods inherited from class org.apache.jcs.auxiliary.lateral.LateralCacheAbstractManager |
fixCaches, getCaches, getCacheType, getStats |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static java.util.Map instances
protected ITCPLateralCacheAttributes lca
Method Detail |
public static LateralTCPCacheManager getInstance(ITCPLateralCacheAttributes lca, ICompositeCacheManager cacheMgr)
lca
- cacheMgr
- this allows the auxiliary to be passed a cache manager.
public void addLateralCacheListener(java.lang.String cacheName, ILateralCacheListener listener) throws java.io.IOException
addLateralCacheListener
in class LateralCacheAbstractManager
cacheName
- The feature to be added to the LateralCacheListener attributelistener
- The feature to be added to the LateralCacheListener attribute
java.io.IOException
public 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
getCache
in class LateralCacheAbstractManager
cacheName
-
public java.util.Map getInstances()
ILateralCacheManager
public java.lang.Object fixService() throws java.io.IOException
ILateralCacheManager
java.io.IOException
- if the service cannot be fixed.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |