|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.distribution.RMICacheManagerPeerProvider net.sf.ehcache.distribution.ManualRMICacheManagerPeerProvider
public final class ManualRMICacheManagerPeerProvider
A provider of Peer RMI addresses based off manual configuration.
Because there is no monitoring of whether a peer is actually there, the list of peers is dynamically looked up and verified each time a lookup request is made.
Field Summary |
---|
Fields inherited from class net.sf.ehcache.distribution.RMICacheManagerPeerProvider |
---|
cacheManager, peerUrls |
Constructor Summary | |
---|---|
ManualRMICacheManagerPeerProvider()
Empty constructor. |
Method Summary | |
---|---|
long |
getTimeForClusterToForm()
Time for a cluster to form. |
void |
init()
Notifies providers to initialise themselves. |
java.util.List |
listRemoteCachePeers(Ehcache cache)
|
void |
registerPeer(java.lang.String rmiUrl)
Register a new peer. |
protected boolean |
stale(java.util.Date date)
Whether the entry should be considered stale. |
Methods inherited from class net.sf.ehcache.distribution.RMICacheManagerPeerProvider |
---|
dispose, extractCacheName, getCacheManager, lookupRemoteCachePeer, unregisterPeer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ManualRMICacheManagerPeerProvider()
Method Detail |
---|
public final void init()
init
in interface CacheManagerPeerProvider
init
in class RMICacheManagerPeerProvider
public long getTimeForClusterToForm()
public final void registerPeer(java.lang.String rmiUrl)
registerPeer
in interface CacheManagerPeerProvider
registerPeer
in class RMICacheManagerPeerProvider
rmiUrl
- public final java.util.List listRemoteCachePeers(Ehcache cache) throws CacheException
listRemoteCachePeers
in interface CacheManagerPeerProvider
listRemoteCachePeers
in class RMICacheManagerPeerProvider
CachePeer
peers, excluding the local peer.
CacheException
protected final boolean stale(java.util.Date date)
stale
in class RMICacheManagerPeerProvider
date
- the date the entry was created
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |