Module org.elasticsearch.server
Package org.elasticsearch.plugins
Interface ClusterCoordinationPlugin
public interface ClusterCoordinationPlugin
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
static interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptiondefault Map<String,
ElectionStrategy> Allows plugging in election strategies (seeElectionStrategy
) that define a customized notion of an election quorum.default BiConsumer<DiscoveryNode,
ClusterState> Returns a consumer that validate the initial join cluster state.default Optional<LeaderHeartbeatService>
getLeaderHeartbeatService
(Settings settings) default Optional<PreVoteCollector.Factory>
-
Method Details
-
getJoinValidator
Returns a consumer that validate the initial join cluster state. The validator, unlessnull
is called exactly once per join attempt but might be called multiple times during the lifetime of a node. Validators are expected to throw aIllegalStateException
if the node and the cluster-state are incompatible. -
getElectionStrategies
Allows plugging in election strategies (seeElectionStrategy
) that define a customized notion of an election quorum. -
getPersistedStateFactory
-
getPersistedClusterStateServiceFactory
default Optional<ClusterCoordinationPlugin.PersistedClusterStateServiceFactory> getPersistedClusterStateServiceFactory() -
getReconfiguratorFactory
-
getPreVoteCollectorFactory
-
getLeaderHeartbeatService
-