public interface CacheCluster
Modifier and Type | Method and Description |
---|---|
boolean |
addTopologyListener(ClusterTopologyListener listener)
Add a listener for cluster events
|
ClusterNode |
getCurrentNode()
Retrieves the
ClusterNode instance that corresponds to the current node. |
Collection<ClusterNode> |
getNodes()
Get all the nodes in the cluster
|
ClusterScheme |
getScheme()
Get scheme name for this cluster info.
|
List<ClusterTopologyListener> |
getTopologyListeners()
Get all the topology listeners
|
boolean |
isClusterOnline()
Find out if the current node is connected to the cluster or not
|
boolean |
removeTopologyListener(ClusterTopologyListener listener)
Remove a listener for cluster events
|
ClusterNode |
waitUntilNodeJoinsCluster()
Waits until the current node has successfully joined the cluster.
|
ClusterScheme getScheme()
TERRACOTTA
is the only scheme supported.ClusterNode getCurrentNode()
ClusterNode
instance that corresponds to the current node.ClusterNode
instance that corresponds to the current nodeClusterNode waitUntilNodeJoinsCluster()
ClusterNode
instance that corresponds to the current nodeCollection<ClusterNode> getNodes()
boolean isClusterOnline()
boolean addTopologyListener(ClusterTopologyListener listener)
listener
- Listenerboolean removeTopologyListener(ClusterTopologyListener listener)
listener
- ListenerList<ClusterTopologyListener> getTopologyListeners()
Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.