|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheManagerPeerProvider
Provides a discovery service to locate CachePeer
listener peers for a Cache.
Method Summary | |
---|---|
void |
dispose()
Providers may be doing all sorts of exotic things and need to be able to clean up on dispose. |
String |
getScheme()
The replication scheme. |
long |
getTimeForClusterToForm()
Time for a cluster to form. |
void |
init()
Notifies providers to initialise themselves. |
List |
listRemoteCachePeers(Ehcache cache)
|
void |
registerPeer(String nodeId)
Register a new peer. |
void |
unregisterPeer(String nodeId)
Unregisters a peer. |
Method Detail |
---|
void registerPeer(String nodeId)
nodeId
- Identifies a node in this replication scheme (ex: RMI URL)void unregisterPeer(String nodeId)
nodeId
- Identifies a node in this replication scheme (ex: RMI URL)List listRemoteCachePeers(Ehcache cache) throws CacheException
CachePeer
peers for the given cache, excluding the local peer.
CacheException
void init()
CacheException
void dispose() throws CacheException
CacheException
long getTimeForClusterToForm()
String getScheme()
CacheReplicator
should lookup
the provider for its scheme type during replication. Similarly a BootstrapCacheLoader
should also look up the provider for its scheme.
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |