Module org.elasticsearch.server
Class JoinReasonService
java.lang.Object
org.elasticsearch.cluster.coordination.JoinReasonService
Tracks nodes that were recently in the cluster, and uses this information to give extra details if these nodes rejoin the cluster.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetJoinReason
(DiscoveryNode discoveryNode, Coordinator.Mode currentMode) void
onClusterStateApplied
(DiscoveryNodes discoveryNodes) Called when a new cluster state was applied by a master-eligible node, possibly adding or removing some nodes.void
onNodeRemoved
(DiscoveryNode discoveryNode, String reason) Called on the master when anode-left
task completes successfully and after the resulting cluster state is applied.
-
Constructor Details
-
JoinReasonService
-
-
Method Details
-
onClusterStateApplied
Called when a new cluster state was applied by a master-eligible node, possibly adding or removing some nodes. -
onNodeRemoved
Called on the master when anode-left
task completes successfully and after the resulting cluster state is applied. If the absent node is still tracked then this adds the removal reason (disconnected
,lagging
, etc.) to the tracker. -
getJoinReason
- Parameters:
discoveryNode
- The joining node.currentMode
- The current mode of the master that the node is joining.- Returns:
- A description of the reason for the join, possibly including some details of its earlier removal.
-