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.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.
Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.