|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ehcache.CacheClusterStateStatisticsListener
public class CacheClusterStateStatisticsListener
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.
Method Summary | |
---|---|
void |
clusterOffline(ClusterNode node)
This node has lost contact (possibly temporarily) with the cluster and cannot execute clustered operations |
void |
clusterOnline(ClusterNode node)
This node has established contact with the cluster and can execute clustered operations. |
void |
clusterRejoined(ClusterNode oldNode,
ClusterNode newNode)
This node lost contact and rejoined the cluster again. |
long |
getMostRecentRejoinTimeStampMS()
Gets the last rejoin time stamp nanos. |
void |
nodeJoined(ClusterNode node)
A node has joined the cluster |
void |
nodeLeft(ClusterNode node)
A node has left the cluster |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void nodeLeft(ClusterNode node)
ClusterTopologyListener
nodeLeft
in interface ClusterTopologyListener
node
- The departing nodepublic void nodeJoined(ClusterNode node)
ClusterTopologyListener
nodeJoined
in interface ClusterTopologyListener
node
- The joining nodepublic void clusterRejoined(ClusterNode oldNode, ClusterNode newNode)
ClusterTopologyListener
This event is only fired in the node which rejoined and not to all the connected nodes
clusterRejoined
in interface ClusterTopologyListener
oldNode
- The old node which got disconnectednewNode
- The new node after rejoinpublic void clusterOnline(ClusterNode node)
ClusterTopologyListener
clusterOnline
in interface ClusterTopologyListener
node
- The current nodepublic void clusterOffline(ClusterNode node)
ClusterTopologyListener
clusterOffline
in interface ClusterTopologyListener
node
- The current nodepublic long getMostRecentRejoinTimeStampMS()
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |