public interface CacheManagerPeerProvider
CachePeer listener peers for a Cache.| Modifier and Type | Method and Description |
|---|---|
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.
|
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.CacheExceptionvoid init()
CacheExceptionvoid dispose()
throws CacheException
CacheExceptionlong 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.
Copyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.