|
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. |
List |
listRemoteCachePeers(Ehcache cache)
|
void |
registerPeer(String rmiUrl)
Register a new peer. |
protected boolean |
stale(Date date)
Whether the entry should be considered stale. |
Methods inherited from class net.sf.ehcache.distribution.RMICacheManagerPeerProvider |
---|
dispose, getCacheManager, getScheme, 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(String rmiUrl)
registerPeer
in interface CacheManagerPeerProvider
registerPeer
in class RMICacheManagerPeerProvider
rmiUrl
- public final 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(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 |