|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.remote.server.RemoteCacheServerListener
This listener class is for inter remote cache commumication.
Field Summary | |
protected static CompositeCacheManager |
cacheMgr
The hub, the cache manager, the master controller . |
protected static IRemoteCacheListener |
instance
Singleton instance of the listener |
protected IRemoteCacheAttributes |
irca
Remote cache configuration attributes. |
Fields inherited from interface org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheListener |
CLIENT_LISTENER, SERVER_LISTENER |
Fields inherited from interface org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheConstants |
REMOTE_ALLOW_CLUSTER_GET, REMOTE_CACHE_SERVICE_NAME, REMOTE_CACHE_SERVICE_PORT, REMOTE_CACHE_SERVICE_VAL, REMOTE_LOCAL_CLUSTER_CONSISTENCY, TOMCAT_ON, TOMCAT_XML |
Constructor Summary | |
protected |
RemoteCacheServerListener(IRemoteCacheAttributes irca)
Only need one since it does work for all regions, just reference by multiple region names. |
Method Summary | |
protected void |
getCacheManager()
Gets the cacheManager attribute of the RemoteCacheServerListener object |
static IRemoteCacheListener |
getInstance(IRemoteCacheAttributes irca)
Gets the instance attribute of the RemoteCacheServerListener class |
long |
getListenerId()
Gets the listenerId attribute of the RemoteCacheServerListener object |
int |
getRemoteType()
Gets the remoteType attribute of the RemoteCacheServerListener object |
void |
handleDispose(java.lang.String cacheName)
Calls freeCache on the named region. |
void |
handlePut(ICacheElement cb)
Just remove the element since it has been updated elsewhere cd should be incomplete for faster transmission. |
void |
handleRemove(java.lang.String cacheName,
java.io.Serializable key)
Calls remove for the key on the named cache |
void |
handleRemoveAll(java.lang.String cacheName)
Calls removeAl on the named cache region. |
void |
setListenerId(long id)
Let the remote cache set a listener_id. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static transient CompositeCacheManager cacheMgr
protected static IRemoteCacheListener instance
protected IRemoteCacheAttributes irca
Constructor Detail |
protected RemoteCacheServerListener(IRemoteCacheAttributes irca)
Exports this remote object to make it available to receive incoming calls, using an anonymous port if none is specified.
irca
- the atttributes, the LocalPort specifies the receiving port.Method Detail |
public void setListenerId(long id) throws java.io.IOException
setListenerId
in interface IRemoteCacheListener
id
- The new listenerId value
java.io.IOException
public long getListenerId() throws java.io.IOException
getListenerId
in interface IRemoteCacheListener
java.io.IOException
public int getRemoteType() throws java.io.IOException
getRemoteType
in interface IRemoteCacheListener
java.io.IOException
public static IRemoteCacheListener getInstance(IRemoteCacheAttributes irca)
irca
-
public void handlePut(ICacheElement cb) throws java.io.IOException
handlePut
in interface ICacheListener
cb
-
java.io.IOException
public void handleRemove(java.lang.String cacheName, java.io.Serializable key) throws java.io.IOException
handleRemove
in interface ICacheListener
cacheName
- key
-
java.io.IOException
public void handleRemoveAll(java.lang.String cacheName) throws java.io.IOException
handleRemoveAll
in interface ICacheListener
cacheName
-
java.io.IOException
public void handleDispose(java.lang.String cacheName) throws java.io.IOException
handleDispose
in interface ICacheListener
cacheName
-
java.io.IOException
protected void getCacheManager()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |