|
ehcache | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
net.sf.ehcache.distribution.RMICachePeer
An RMI based implementation of CachePeer
.
Field Summary |
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary | |
RMICachePeer(Cache cache,
java.lang.String hostName,
java.lang.Integer port,
java.lang.Integer socketTimeoutMillis)
Construct a new remote peer. |
Method Summary | |
java.lang.String |
getGuid()
Gets the globally unique id for the underlying Cache instance. |
java.lang.String |
getName()
Gets the cache name |
java.lang.String |
getUrl()
The URL for the remote replicator to connect. The value will only have meaning for a specific implementation of replicator and remote peer. This method is not meant to be used remotely. The replicator already needs to know this. It has to throw RemoteException to comply with RMI requirements This implementation gives an URL which has meaning to the RMI remoting system. |
java.lang.String |
getUrlBase()
The URL base for the remote replicator to connect. The value will have meaning only to a specific implementation of replicator and remote peer. This implementation gives an URL which has meaning to the RMI remoting system. |
void |
put(Element element)
Puts an Element into the underlying cache without notifying listeners or updating statistics. |
boolean |
remove(java.io.Serializable key)
Removes an Element from the underlying cache without notifying listeners or updating statistics. |
void |
removeAll()
Removes all cached items. |
void |
send(java.util.List eventMessages)
Send the cache peer with an ordered list of EventMessage s
This enables multiple messages to be delivered in one network invocation. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RMICachePeer(Cache cache, java.lang.String hostName, java.lang.Integer port, java.lang.Integer socketTimeoutMillis) throws java.rmi.RemoteException
cache
- hostName
- port
- socketTimeoutMillis
-
java.rmi.RemoteException
Method Detail |
public final java.lang.String getUrl()
getUrl
in interface CachePeer
public final java.lang.String getUrlBase()
getUrlBase
in interface CachePeer
public void put(Element element) throws java.rmi.RemoteException, java.lang.IllegalArgumentException, java.lang.IllegalStateException
put
in interface CachePeer
element
-
java.rmi.RemoteException
java.lang.IllegalArgumentException
java.lang.IllegalStateException
public final boolean remove(java.io.Serializable key) throws java.rmi.RemoteException, java.lang.IllegalStateException
remove
in interface CachePeer
key
-
java.rmi.RemoteException
java.lang.IllegalStateException
public final void removeAll() throws java.rmi.RemoteException, java.lang.IllegalStateException
removeAll
in interface CachePeer
java.lang.IllegalStateException
- if the cache is not Status.STATUS_ALIVE
java.rmi.RemoteException
public final void send(java.util.List eventMessages) throws java.rmi.RemoteException
EventMessage
s
This enables multiple messages to be delivered in one network invocation.
send
in interface CachePeer
eventMessages
- a list of type EventMessage
java.rmi.RemoteException
public final java.lang.String getName() throws java.rmi.RemoteException
getName
in interface CachePeer
java.rmi.RemoteException
public final java.lang.String getGuid() throws java.rmi.RemoteException
Cache
instance.
getGuid
in interface CachePeer
java.rmi.RemoteException
|
ehcache | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |