java.lang.Object
org.elasticsearch.injection.guice.AbstractModule
org.elasticsearch.cluster.ClusterModule
- All Implemented Interfaces:
Module
Configures classes and services that affect the entire cluster.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClusterModule
(Settings settings, ClusterService clusterService, List<ClusterPlugin> clusterPlugins, ClusterInfoService clusterInfoService, SnapshotsInfoService snapshotsInfoService, ThreadPool threadPool, SystemIndices systemIndices, WriteLoadForecaster writeLoadForecaster, TelemetryProvider telemetryProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Configures aBinder
via the exposed methods.static Collection
<AllocationDecider> createAllocationDeciders
(Settings settings, ClusterSettings clusterSettings, List<ClusterPlugin> clusterPlugins) Return a newAllocationDecider
instance with builtin deciders as well as those from plugins.static List
<NamedWriteableRegistry.Entry> static List
<NamedXContentRegistry.Entry> void
setExistingShardsAllocators
(GatewayAllocator gatewayAllocator) Methods inherited from class org.elasticsearch.injection.guice.AbstractModule
bind, bind, binder, configure
-
Field Details
-
BALANCED_ALLOCATOR
- See Also:
-
DESIRED_BALANCE_ALLOCATOR
- See Also:
-
SHARDS_ALLOCATOR_TYPE_SETTING
-
-
Constructor Details
-
ClusterModule
public ClusterModule(Settings settings, ClusterService clusterService, List<ClusterPlugin> clusterPlugins, ClusterInfoService clusterInfoService, SnapshotsInfoService snapshotsInfoService, ThreadPool threadPool, SystemIndices systemIndices, WriteLoadForecaster writeLoadForecaster, TelemetryProvider telemetryProvider)
-
-
Method Details
-
getNamedWriteables
-
getNamedXWriteables
-
getIndexNameExpressionResolver
-
createAllocationDeciders
public static Collection<AllocationDecider> createAllocationDeciders(Settings settings, ClusterSettings clusterSettings, List<ClusterPlugin> clusterPlugins) Return a newAllocationDecider
instance with builtin deciders as well as those from plugins. -
getAllocationService
-
configure
protected void configure()Description copied from class:AbstractModule
Configures aBinder
via the exposed methods.- Specified by:
configure
in classAbstractModule
-
setExistingShardsAllocators
-