|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.distribution.RMICacheManagerPeerListener
net.sf.ehcache.distribution.JNDIRMICacheManagerPeerListener
public class JNDIRMICacheManagerPeerListener
A cache server which exposes available cache operations remotely through RMI. Uses JNDI to bind the remote cache.
RMICacheManagerPeerListener| Field Summary |
|---|
| Fields inherited from class net.sf.ehcache.distribution.RMICacheManagerPeerListener |
|---|
cachePeers, port, status |
| Constructor Summary | |
|---|---|
JNDIRMICacheManagerPeerListener(java.lang.String hostName,
java.lang.Integer port,
CacheManager cacheManager,
java.lang.Integer socketTimeoutMillis)
Constructor with full arguments. |
|
| Method Summary | |
|---|---|
protected void |
disposeRMICachePeer(RMICachePeer rmiCachePeer)
Disposes an individual RMICachePeer. |
void |
init()
Call to start the listeners and do any other network initialisation. |
| Methods inherited from class net.sf.ehcache.distribution.RMICacheManagerPeerListener |
|---|
addCachePeer, assignFreePort, attemptResolutionOfUniqueResourceConflict, bind, calculateHostAddress, dispose, getBoundCachePeers, getFreePort, getStatus, getUniqueResourceIdentifier, isDistributed, listBoundRMICachePeers, lookupPeer, notifyCacheAdded, notifyCacheRemoved, populateListOfRemoteCachePeers, removeShutdownHook, startRegistry, unbind |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.ehcache.distribution.CacheManagerPeerListener |
|---|
attemptResolutionOfUniqueResourceConflict, dispose, getBoundCachePeers, getStatus, getUniqueResourceIdentifier |
| Methods inherited from interface net.sf.ehcache.event.CacheManagerEventListener |
|---|
notifyCacheAdded, notifyCacheRemoved |
| Constructor Detail |
|---|
public JNDIRMICacheManagerPeerListener(java.lang.String hostName,
java.lang.Integer port,
CacheManager cacheManager,
java.lang.Integer socketTimeoutMillis)
throws java.net.UnknownHostException
hostName - may be null, in which case the hostName will be looked up. Machines with multiple
interfaces should specify this if they do not want it to be the default NIC.port - a port in the range 1025 - 65536cacheManager - the CacheManager this listener belongs tosocketTimeoutMillis - TCP/IP Socket timeout when waiting on response
Constructor
java.net.UnknownHostExceptionRMICacheManagerPeerListener| Method Detail |
|---|
public void init()
throws CacheException
init in interface CacheManagerPeerListenerinit in class RMICacheManagerPeerListenerCacheException
protected void disposeRMICachePeer(RMICachePeer rmiCachePeer)
throws java.lang.Exception
disposeRMICachePeer in class RMICacheManagerPeerListenerrmiCachePeer - the cache peer to dispose of
java.lang.Exception - thrown if something goes wrong
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||