Package org.elasticsearch.discovery.zen
Class MembershipAction
java.lang.Object
org.elasticsearch.discovery.zen.MembershipAction
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic classstatic classstatic interface -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMembershipAction(TransportService transportService, MembershipAction.MembershipListener listener, Collection<BiConsumer<DiscoveryNode,ClusterState>> joinValidators) -
Method Summary
Modifier and TypeMethodDescriptionvoidsendJoinRequestBlocking(DiscoveryNode masterNode, DiscoveryNode node, org.elasticsearch.core.TimeValue timeout)voidsendLeaveRequest(DiscoveryNode masterNode, DiscoveryNode node)voidsendLeaveRequestBlocking(DiscoveryNode masterNode, DiscoveryNode node, org.elasticsearch.core.TimeValue timeout)voidsendValidateJoinRequestBlocking(DiscoveryNode node, ClusterState state, org.elasticsearch.core.TimeValue timeout)Validates the join request, throwing a failure if it failed.
-
Field Details
-
DISCOVERY_JOIN_ACTION_NAME
- See Also:
- Constant Field Values
-
DISCOVERY_JOIN_VALIDATE_ACTION_NAME
- See Also:
- Constant Field Values
-
DISCOVERY_LEAVE_ACTION_NAME
- See Also:
- Constant Field Values
-
-
Constructor Details
-
MembershipAction
public MembershipAction(TransportService transportService, MembershipAction.MembershipListener listener, Collection<BiConsumer<DiscoveryNode,ClusterState>> joinValidators)
-
-
Method Details
-
sendLeaveRequest
-
sendLeaveRequestBlocking
public void sendLeaveRequestBlocking(DiscoveryNode masterNode, DiscoveryNode node, org.elasticsearch.core.TimeValue timeout) -
sendJoinRequestBlocking
public void sendJoinRequestBlocking(DiscoveryNode masterNode, DiscoveryNode node, org.elasticsearch.core.TimeValue timeout) -
sendValidateJoinRequestBlocking
public void sendValidateJoinRequestBlocking(DiscoveryNode node, ClusterState state, org.elasticsearch.core.TimeValue timeout)Validates the join request, throwing a failure if it failed.
-