|
|||||||||||
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 cache commumication.
Field Summary | |
protected static CompositeCacheManager |
cacheMgr
Description of the Field |
protected static IRemoteCacheListener |
instance
Description of the Field |
protected IRemoteCacheAttributes |
irca
Description of the Field |
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)
Description of the Method |
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)
Description of the Method |
void |
handleRemoveAll(java.lang.String cacheName)
Description of the Method |
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)
irca
- 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)
public void handlePut(ICacheElement cb) throws java.io.IOException
handlePut
in interface ICacheListener
java.io.IOException
public void handleRemove(java.lang.String cacheName, java.io.Serializable key) throws java.io.IOException
handleRemove
in interface ICacheListener
java.io.IOException
public void handleRemoveAll(java.lang.String cacheName) throws java.io.IOException
handleRemoveAll
in interface ICacheListener
java.io.IOException
public void handleDispose(java.lang.String cacheName) throws java.io.IOException
handleDispose
in interface ICacheListener
java.io.IOException
protected void getCacheManager()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |