|
|||||||||
| 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,
String clusterName)
Create a new CachePeer |
|
| Method Summary | |
|---|---|
void |
dispose()
Shutdown the cache peer |
List |
getElements(List keys)
|
List<org.jgroups.Address> |
getGroupMembership()
|
String |
getGuid()
|
List<?> |
getKeys()
|
org.jgroups.Address |
getLocalAddress()
|
String |
getName()
|
List<org.jgroups.Address> |
getOtherGroupMembers()
|
net.sf.ehcache.Element |
getQuiet(Serializable key)
|
String |
getUrl()
|
String |
getUrlBase()
|
void |
put(net.sf.ehcache.Element element)
|
boolean |
remove(Serializable key)
|
void |
removeAll()
|
void |
send(org.jgroups.Address dest,
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(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,
String clusterName)
CachePeer
| Method Detail |
|---|
public void send(List eventMessages)
throws RemoteException
send in interface net.sf.ehcache.distribution.CachePeerRemoteExceptionpublic List<org.jgroups.Address> getGroupMembership()
public List<org.jgroups.Address> getOtherGroupMembers()
public org.jgroups.Address getLocalAddress()
public void dispose()
public void send(org.jgroups.Address dest,
List<JGroupEventMessage> eventMessages)
JGroupEventMessages to the specified address, if no address is set the messages
are sent to the entire group.
public List getElements(List keys)
throws RemoteException
getElements in interface net.sf.ehcache.distribution.CachePeerRemoteException
public String getGuid()
throws RemoteException
getGuid in interface net.sf.ehcache.distribution.CachePeerRemoteException
public List<?> getKeys()
throws RemoteException
getKeys in interface net.sf.ehcache.distribution.CachePeerRemoteException
public String getName()
throws RemoteException
getName in interface net.sf.ehcache.distribution.CachePeerRemoteException
public net.sf.ehcache.Element getQuiet(Serializable key)
throws RemoteException
getQuiet in interface net.sf.ehcache.distribution.CachePeerRemoteException
public String getUrl()
throws RemoteException
getUrl in interface net.sf.ehcache.distribution.CachePeerRemoteException
public String getUrlBase()
throws RemoteException
getUrlBase in interface net.sf.ehcache.distribution.CachePeerRemoteException
public void put(net.sf.ehcache.Element element)
throws IllegalArgumentException,
IllegalStateException,
RemoteException
put in interface net.sf.ehcache.distribution.CachePeerIllegalArgumentException
IllegalStateException
RemoteException
public boolean remove(Serializable key)
throws IllegalStateException,
RemoteException
remove in interface net.sf.ehcache.distribution.CachePeerIllegalStateException
RemoteException
public void removeAll()
throws RemoteException,
IllegalStateException
removeAll in interface net.sf.ehcache.distribution.CachePeerRemoteException
IllegalStateException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||