public class MembershipAction extends AbstractComponent
| Modifier and Type | Class and Description |
|---|---|
static interface |
MembershipAction.JoinCallback |
static class |
MembershipAction.JoinRequest |
static class |
MembershipAction.LeaveRequest |
static interface |
MembershipAction.MembershipListener |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DISCOVERY_JOIN_ACTION_NAME |
static java.lang.String |
DISCOVERY_JOIN_VALIDATE_ACTION_NAME |
static java.lang.String |
DISCOVERY_LEAVE_ACTION_NAME |
deprecationLogger, logger, settings| Constructor and Description |
|---|
MembershipAction(Settings settings,
TransportService transportService,
MembershipAction.MembershipListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
sendJoinRequestBlocking(DiscoveryNode masterNode,
DiscoveryNode node,
TimeValue timeout) |
void |
sendLeaveRequest(DiscoveryNode masterNode,
DiscoveryNode node) |
void |
sendLeaveRequestBlocking(DiscoveryNode masterNode,
DiscoveryNode node,
TimeValue timeout) |
void |
sendValidateJoinRequestBlocking(DiscoveryNode node,
ClusterState state,
TimeValue timeout)
Validates the join request, throwing a failure if it failed.
|
logDeprecatedSetting, logRemovedSetting, nodeNamepublic static final java.lang.String DISCOVERY_JOIN_ACTION_NAME
public static final java.lang.String DISCOVERY_JOIN_VALIDATE_ACTION_NAME
public static final java.lang.String DISCOVERY_LEAVE_ACTION_NAME
public MembershipAction(Settings settings, TransportService transportService, MembershipAction.MembershipListener listener)
public void sendLeaveRequest(DiscoveryNode masterNode, DiscoveryNode node)
public void sendLeaveRequestBlocking(DiscoveryNode masterNode, DiscoveryNode node, TimeValue timeout)
public void sendJoinRequestBlocking(DiscoveryNode masterNode, DiscoveryNode node, TimeValue timeout)
public void sendValidateJoinRequestBlocking(DiscoveryNode node, ClusterState state, TimeValue timeout)