|
||||||||||
| 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
public class LateralTCPCacheManager
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.
TODO: - need freeCache, release, getStats - need to find an interface acceptable for all - cache managers or a manager within a type
| Field Summary | |
|---|---|
protected static Map<String,LateralTCPCacheManager> |
instances
Address to instance map. |
protected ITCPLateralCacheAttributes |
lateralCacheAttributes
ITCPLateralCacheAttributes |
| Fields inherited from class org.apache.jcs.auxiliary.lateral.LateralCacheAbstractManager |
|---|
cacheEventLogger, caches, elementSerializer, lca |
| Method Summary | ||
|---|---|---|
|
addLateralCacheListener(String cacheName,
ILateralCacheListener<K,V> listener)
Adds the lateral cache listener to the underlying cache-watch service. |
|
Object |
fixService()
The restore calls this on the manger if a cache if found to be in error. |
|
|
getCache(String cacheName)
Called to access a precreated region or construct one with defaults. |
|
static LateralTCPCacheManager |
getInstance(ITCPLateralCacheAttributes lca,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Returns an instance of the LateralCacheManager. |
|
Map<String,? extends ILateralCacheManager> |
getInstances()
This is a temporary solution that allows the monitor to get the instances of a manager. |
|
void |
shutdown()
Shuts down the lateral sender. |
|
| Methods inherited from class org.apache.jcs.auxiliary.lateral.LateralCacheAbstractManager |
|---|
fixCaches, getCaches, getStats |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Map<String,LateralTCPCacheManager> instances
protected ITCPLateralCacheAttributes lateralCacheAttributes
| Method Detail |
|---|
public static LateralTCPCacheManager getInstance(ITCPLateralCacheAttributes lca,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
lca - cacheMgr - this allows the auxiliary to be passed a cache manager.cacheEventLogger - elementSerializer -
public <K extends Serializable,V extends Serializable> void addLateralCacheListener(String cacheName,
ILateralCacheListener<K,V> listener)
throws IOException
addLateralCacheListener in class LateralCacheAbstractManagercacheName - The feature to be added to the LateralCacheListener attributelistener - The feature to be added to the LateralCacheListener attribute
IOExceptionpublic <K extends Serializable,V extends Serializable> LateralCacheNoWait<K,V> getCache(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 AuxiliaryCacheManagergetCache in class LateralCacheAbstractManagercacheName -
public Map<String,? extends ILateralCacheManager> getInstances()
ILateralCacheManager
public Object fixService()
throws IOException
ILateralCacheManager
IOExceptionpublic void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||