private static class TerracottaClient.NodeLeftListener extends java.lang.Object implements ClusterTopologyListener
ClusterTopologyListener
that listens for node left event for a nodeModifier and Type | Field and Description |
---|---|
private TerracottaClient |
client |
private ClusterNode |
currentNode |
Constructor and Description |
---|
NodeLeftListener(TerracottaClient client,
ClusterNode currentNode)
Constructor accepting the client and the node to listen for
|
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.
|
void |
nodeJoined(ClusterNode node)
A node has joined the cluster
|
void |
nodeLeft(ClusterNode node)
A node has left the cluster
|
private final ClusterNode currentNode
private final TerracottaClient client
public NodeLeftListener(TerracottaClient client, ClusterNode currentNode)
public void nodeLeft(ClusterNode node)
nodeLeft
in interface ClusterTopologyListener
node
- The departing nodepublic void clusterOffline(ClusterNode node)
clusterOffline
in interface ClusterTopologyListener
node
- The current nodepublic void clusterOnline(ClusterNode node)
clusterOnline
in interface ClusterTopologyListener
node
- The current nodepublic void nodeJoined(ClusterNode node)
nodeJoined
in interface ClusterTopologyListener
node
- The joining nodepublic void clusterRejoined(ClusterNode oldNode, ClusterNode newNode)
clusterRejoined
in interface ClusterTopologyListener
oldNode
- The old node which got disconnectednewNode
- The new node after rejoin