|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.ehcache.distribution.jgroups.JGroupsCachePeer
public class JGroupsCachePeer
Handles CachePeerfunctions around a JGroups Channel and a
CacheManager
| Constructor Summary | |
|---|---|
JGroupsCachePeer(org.jgroups.Channel channel,
java.lang.String clusterName)
Create a new CachePeer |
|
| Method Summary | |
|---|---|
void |
dispose()
Shutdown the cache peer |
java.util.List<?> |
getElements(java.util.List keys)
|
java.util.List<org.jgroups.Address> |
getGroupMembership()
|
java.lang.String |
getGuid()
|
java.util.List<?> |
getKeys()
|
org.jgroups.Address |
getLocalAddress()
|
java.lang.String |
getName()
|
java.util.List<org.jgroups.Address> |
getOtherGroupMembers()
|
net.sf.ehcache.Element |
getQuiet(java.io.Serializable key)
|
java.lang.String |
getUrl()
|
java.lang.String |
getUrlBase()
|
void |
put(net.sf.ehcache.Element element)
|
boolean |
remove(java.io.Serializable key)
|
void |
removeAll()
|
void |
send(org.jgroups.Address dest,
java.util.List<JGroupEventMessage> eventMessages)
Sends a list of JGroupEventMessages to the specified address, if no address is set the messages
are sent to the entire group. |
void |
send(java.util.List eventMessages)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JGroupsCachePeer(org.jgroups.Channel channel,
java.lang.String clusterName)
CachePeer
| Method Detail |
|---|
public void send(java.util.List eventMessages)
throws java.rmi.RemoteException
send in interface net.sf.ehcache.distribution.CachePeerjava.rmi.RemoteExceptionpublic java.util.List<org.jgroups.Address> getGroupMembership()
public java.util.List<org.jgroups.Address> getOtherGroupMembers()
public org.jgroups.Address getLocalAddress()
public void dispose()
public void send(org.jgroups.Address dest,
java.util.List<JGroupEventMessage> eventMessages)
JGroupEventMessages to the specified address, if no address is set the messages
are sent to the entire group.
public java.util.List<?> getElements(java.util.List keys)
throws java.rmi.RemoteException
getElements in interface net.sf.ehcache.distribution.CachePeerjava.rmi.RemoteException
public java.lang.String getGuid()
throws java.rmi.RemoteException
getGuid in interface net.sf.ehcache.distribution.CachePeerjava.rmi.RemoteException
public java.util.List<?> getKeys()
throws java.rmi.RemoteException
getKeys in interface net.sf.ehcache.distribution.CachePeerjava.rmi.RemoteException
public java.lang.String getName()
throws java.rmi.RemoteException
getName in interface net.sf.ehcache.distribution.CachePeerjava.rmi.RemoteException
public net.sf.ehcache.Element getQuiet(java.io.Serializable key)
throws java.rmi.RemoteException
getQuiet in interface net.sf.ehcache.distribution.CachePeerjava.rmi.RemoteException
public java.lang.String getUrl()
throws java.rmi.RemoteException
getUrl in interface net.sf.ehcache.distribution.CachePeerjava.rmi.RemoteException
public java.lang.String getUrlBase()
throws java.rmi.RemoteException
getUrlBase in interface net.sf.ehcache.distribution.CachePeerjava.rmi.RemoteException
public void put(net.sf.ehcache.Element element)
throws java.lang.IllegalArgumentException,
java.lang.IllegalStateException,
java.rmi.RemoteException
put in interface net.sf.ehcache.distribution.CachePeerjava.lang.IllegalArgumentException
java.lang.IllegalStateException
java.rmi.RemoteException
public boolean remove(java.io.Serializable key)
throws java.lang.IllegalStateException,
java.rmi.RemoteException
remove in interface net.sf.ehcache.distribution.CachePeerjava.lang.IllegalStateException
java.rmi.RemoteException
public void removeAll()
throws java.rmi.RemoteException,
java.lang.IllegalStateException
removeAll in interface net.sf.ehcache.distribution.CachePeerjava.rmi.RemoteException
java.lang.IllegalStateException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||