|
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
public class RMICachePeer
An RMI based implementation of CachePeer.
| Field Summary |
|---|
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Constructor Summary | |
|---|---|
RMICachePeer(Ehcache cache,
java.lang.String hostName,
java.lang.Integer rmiRegistryPort,
java.lang.Integer remoteObjectPort,
java.lang.Integer socketTimeoutMillis)
Construct a new remote peer. |
|
| Method Summary | |
|---|---|
(package private) Ehcache |
getBoundCacheInstance()
Gets the cache instance that this listener is bound to |
java.util.List |
getElements(java.util.List keys)
Gets a list of elements from the cache, for a list of keys, without updating Element statistics. |
java.lang.String |
getGuid()
Gets the globally unique id for the underlying Cache instance. |
java.util.List |
getKeys()
Returns a list of all elements in the cache, whether or not they are expired. |
java.lang.String |
getName()
Gets the cache name |
Element |
getQuiet(java.io.Serializable key)
Gets an element from the cache, without updating Element statistics. |
java.lang.String |
getUrl()
The URL for the remote replicator to connect. 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. 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 EventMessages
This enables multiple messages to be delivered in one network invocation. |
java.lang.String |
toString()
Returns a String that represents the value of this object. |
| 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, toStub |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RMICachePeer(Ehcache cache,
java.lang.String hostName,
java.lang.Integer rmiRegistryPort,
java.lang.Integer remoteObjectPort,
java.lang.Integer socketTimeoutMillis)
throws java.rmi.RemoteException
cache - The cache attached to the peerhostName - The host name the peer is running on.rmiRegistryPort - The port number on which the RMI Registry listens. Should be an unused port in
the range 1025 - 65536remoteObjectPort - the port number on which the remote objects bound in the registry receive calls.
This defaults to a free port if not specified.
Should be an unused port in the range 1025 - 65536socketTimeoutMillis -
java.rmi.RemoteException| Method Detail |
|---|
public final java.lang.String getUrl()
getUrl in interface CachePeerpublic final java.lang.String getUrlBase()
getUrlBase in interface CachePeer
public java.util.List getKeys()
throws java.rmi.RemoteException
getKeys in interface CachePeerObject keys
java.rmi.RemoteException
public Element getQuiet(java.io.Serializable key)
throws java.rmi.RemoteException
getQuiet in interface CachePeerkey - a serializable value
java.rmi.RemoteException
public java.util.List getElements(java.util.List keys)
throws java.rmi.RemoteException
getElements in interface CachePeerkeys - a list of serializable values which represent keys
java.rmi.RemoteException
public void put(Element element)
throws java.rmi.RemoteException,
java.lang.IllegalArgumentException,
java.lang.IllegalStateException
put in interface CachePeerelement -
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 CachePeerkey -
java.rmi.RemoteException
java.lang.IllegalStateException
public final void removeAll()
throws java.rmi.RemoteException,
java.lang.IllegalStateException
removeAll in interface CachePeerjava.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
EventMessages
This enables multiple messages to be delivered in one network invocation.
send in interface CachePeereventMessages - a list of type EventMessage
java.rmi.RemoteException
public final java.lang.String getName()
throws java.rmi.RemoteException
getName in interface CachePeerjava.rmi.RemoteException
public final java.lang.String getGuid()
throws java.rmi.RemoteException
Cache instance.
getGuid in interface CachePeerjava.rmi.RemoteExceptionfinal Ehcache getBoundCacheInstance()
public java.lang.String toString()
toString in class java.rmi.server.RemoteObject
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||