|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheCluster
Allows you to explore the Terracotta cluster nodes and register for events about the cluster.
Method Summary | |
---|---|
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 |
void |
removeAllListeners()
Removes all listeners for cluster events |
boolean |
removeTopologyListener(ClusterTopologyListener listener)
Remove a listener for cluster events |
ClusterNode |
waitUntilNodeJoinsCluster()
Waits until the current node has successfully joined the cluster. |
Method Detail |
---|
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
- Listener
boolean removeTopologyListener(ClusterTopologyListener listener)
listener
- Listener
void removeAllListeners()
List<ClusterTopologyListener> getTopologyListeners()
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |