Package net.sf.ehcache.cluster
Interface ClusterTopologyListener
-
- All Known Implementing Classes:
CacheClusterStateStatisticsListener
public interface ClusterTopologyListenerA listener for cluster topology events- Since:
- 2.0
- Author:
- Geert Bevin
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclusterOffline(ClusterNode node)This node has lost contact (possibly temporarily) with the cluster and cannot execute clustered operationsvoidclusterOnline(ClusterNode node)This node has established contact with the cluster and can execute clustered operations.voidclusterRejoined(ClusterNode oldNode, ClusterNode newNode)This node lost contact and rejoined the cluster again.voidnodeJoined(ClusterNode node)A node has joined the clustervoidnodeLeft(ClusterNode node)A node has left the cluster
-
-
-
Method Detail
-
nodeJoined
void nodeJoined(ClusterNode node)
A node has joined the cluster- Parameters:
node- The joining node
-
nodeLeft
void nodeLeft(ClusterNode node)
A node has left the cluster- Parameters:
node- The departing node
-
clusterOnline
void clusterOnline(ClusterNode node)
This node has established contact with the cluster and can execute clustered operations.- Parameters:
node- The current node
-
clusterOffline
void clusterOffline(ClusterNode node)
This node has lost contact (possibly temporarily) with the cluster and cannot execute clustered operations- Parameters:
node- The current node
-
clusterRejoined
void clusterRejoined(ClusterNode oldNode, ClusterNode newNode)
This node lost contact and rejoined the cluster again.This event is only fired in the node which rejoined and not to all the connected nodes
- Parameters:
oldNode- The old node which got disconnectednewNode- The new node after rejoin
-
-