private static class TerracottaClient.FireRejoinEventListener extends java.lang.Object implements ClusterTopologyListener
Modifier and Type | Field and Description |
---|---|
private ClusterNode |
currentNode |
private java.util.concurrent.CountDownLatch |
latch |
Constructor and Description |
---|
FireRejoinEventListener(ClusterNode currentNode,
java.util.concurrent.CountDownLatch latch)
Constructor
|
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 java.util.concurrent.CountDownLatch latch
private final ClusterNode currentNode
public FireRejoinEventListener(ClusterNode currentNode, java.util.concurrent.CountDownLatch latch)
clusterNode
- latch
- public void nodeJoined(ClusterNode node)
nodeJoined
in interface ClusterTopologyListener
node
- The joining nodepublic void clusterOnline(ClusterNode node)
clusterOnline
in interface ClusterTopologyListener
node
- The current nodepublic 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 clusterRejoined(ClusterNode oldNode, ClusterNode newNode)
clusterRejoined
in interface ClusterTopologyListener
oldNode
- The old node which got disconnectednewNode
- The new node after rejoin