net.sf.ehcache.distribution
public class JNDIManualRMICacheManagerPeerProvider extends Object implements CacheManagerPeerProvider
Version: $Id: JNDIManualRMICacheManagerPeerProvider.java 100 2006-05-30 08:19:29Z gregluck $
Field Summary | |
---|---|
protected Map | cachePeers
CachePeers keyed by jndiProviderUrl |
protected Map | peerUrls
Contains registered JNDI URLs as keys to their Context |
Constructor Summary | |
---|---|
JNDIManualRMICacheManagerPeerProvider(boolean isStashContexts, boolean isStashRemoteCachePeers)
Constructor
| |
JNDIManualRMICacheManagerPeerProvider(CacheManager cacheManager)
Constructor
|
Method Summary | |
---|---|
void | dispose()
Providers may be doing all sorts of exotic things and need to be able to clean up on dispose.
|
CacheManager | getCacheManager()
The cacheManager this provider is bound to |
long | getTimeForClusterToForm()
Time for a cluster to form. |
void | init()
Notifies providers to initialise themselves.
|
List | listRemoteCachePeers(Ehcache cache) |
void | registerPeer(String jndiProviderUrl)
Register a new peer
|
String | toString()
Returns a string representation of the object. |
void | unregisterPeer(String jndiProviderUrl)
Unregisters a peer
|
Parameters: isStashRemoteCachePeers isStashContexts
Parameters: cacheManager
Throws: net.sf.ehcache.CacheException
Returns: the time in ms, for a cluster to form
Throws: CacheException
Returns: a list of CachePeer peers, excluding the local peer.
Parameters: jndiProviderUrl
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
Returns: a string representation of the object.
Parameters: jndiProviderUrl