Package net.sf.ehcache
Class CacheClusterStateStatisticsListener
- java.lang.Object
-
- net.sf.ehcache.CacheClusterStateStatisticsListener
-
- All Implemented Interfaces:
ClusterTopologyListener
public class CacheClusterStateStatisticsListener extends java.lang.Object implements ClusterTopologyListener
A listener to capture statistics relating to cluster events regarding this node. This should really be a single listener, at the cache manager level, with CacheManager statistics. But we don't have that concept at the moment. Sad face.- Author:
- cschanck
-
-
Method Summary
All Methods Instance Methods Concrete 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.longgetMostRecentRejoinTimeStampMS()Gets the last rejoin time stamp nanos.voidnodeJoined(ClusterNode node)A node has joined the clustervoidnodeLeft(ClusterNode node)A node has left the cluster
-
-
-
Method Detail
-
nodeLeft
public void nodeLeft(ClusterNode node)
Description copied from interface:ClusterTopologyListenerA node has left the cluster- Specified by:
nodeLeftin interfaceClusterTopologyListener- Parameters:
node- The departing node
-
nodeJoined
public void nodeJoined(ClusterNode node)
Description copied from interface:ClusterTopologyListenerA node has joined the cluster- Specified by:
nodeJoinedin interfaceClusterTopologyListener- Parameters:
node- The joining node
-
clusterRejoined
public void clusterRejoined(ClusterNode oldNode, ClusterNode newNode)
Description copied from interface:ClusterTopologyListenerThis 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
- Specified by:
clusterRejoinedin interfaceClusterTopologyListener- Parameters:
oldNode- The old node which got disconnectednewNode- The new node after rejoin
-
clusterOnline
public void clusterOnline(ClusterNode node)
Description copied from interface:ClusterTopologyListenerThis node has established contact with the cluster and can execute clustered operations.- Specified by:
clusterOnlinein interfaceClusterTopologyListener- Parameters:
node- The current node
-
clusterOffline
public void clusterOffline(ClusterNode node)
Description copied from interface:ClusterTopologyListenerThis node has lost contact (possibly temporarily) with the cluster and cannot execute clustered operations- Specified by:
clusterOfflinein interfaceClusterTopologyListener- Parameters:
node- The current node
-
getMostRecentRejoinTimeStampMS
public long getMostRecentRejoinTimeStampMS()
Gets the last rejoin time stamp nanos.- Returns:
- the last rejoin time stamp nanos
-
-