public class CacheClusterStateStatisticsListener extends Object implements ClusterTopologyListener
Modifier and Type | Method and Description |
---|---|
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
|
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()
Copyright 2001-2018, Terracotta, Inc.