Package org.elasticsearch.cluster
Class ClusterModule
org.elasticsearch.common.inject.AbstractModule
org.elasticsearch.cluster.ClusterModule
- All Implemented Interfaces:
Module
Configures classes and services that affect the entire cluster.
-
Field Summary
Modifier and TypeFieldDescriptionstatic
static >
-
Constructor Summary
ConstructorDescriptionClusterModule(Settings settings, ClusterService clusterService, <ClusterPlugin> clusterPlugins, ClusterInfoService clusterInfoService, SnapshotsInfoService snapshotsInfoService, ThreadContext threadContext, SystemIndices systemIndices)
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Configures aBinder
via the exposed methods.static <AllocationDecider>
createAllocationDeciders(Settings settings, ClusterSettings clusterSettings, <ClusterPlugin> clusterPlugins)
Return a newAllocationDecider
instance with builtin deciders as well as those from plugins.static ClusterState
filterCustomsForPre63Clients(ClusterState clusterState)
For interoperability with transport clients older than 6.3, we need to strip customs from the cluster state that the client might not be able to deserializestatic <NamedWriteableRegistry.Entry>
static <org.elasticsearch.common.xcontent.NamedXContentRegistry.Entry>
void
setExistingShardsAllocators(GatewayAllocator gatewayAllocator)
Methods inherited from class org.elasticsearch.common.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
Methods inherited from class java.lang.
, , , , , , , , , ,
-
Field Details
-
BALANCED_ALLOCATOR
public static final BALANCED_ALLOCATOR- See Also:
- Constant Field Values
-
SHARDS_ALLOCATOR_TYPE_SETTING
public static final > SHARDS_ALLOCATOR_TYPE_SETTING
-
-
Constructor Details
-
ClusterModule
public ClusterModule(Settings settings, ClusterService clusterService, <ClusterPlugin> clusterPlugins, ClusterInfoService clusterInfoService, SnapshotsInfoService snapshotsInfoService, ThreadContext threadContext, SystemIndices systemIndices)
-
-
Method Details
-
getNamedWriteables
-
filterCustomsForPre63Clients
For interoperability with transport clients older than 6.3, we need to strip customs from the cluster state that the client might not be able to deserialize- Parameters:
clusterState
- the cluster state to filter the customs from- Returns:
- the adapted cluster state
-
getNamedXWriteables
public static <org.elasticsearch.common.xcontent.NamedXContentRegistry.Entry> getNamedXWriteables() -
getIndexNameExpressionResolver
-
createAllocationDeciders
public static <AllocationDecider> createAllocationDeciders(Settings settings, ClusterSettings clusterSettings, <ClusterPlugin> clusterPlugins)Return a newAllocationDecider
instance with builtin deciders as well as those from plugins. -
getAllocationService
-
getMetadataDeleteIndexService
-
configure
protected void configure()Description copied from class:AbstractModule
Configures aBinder
via the exposed methods.- Specified by:
configure
in classAbstractModule
-
setExistingShardsAllocators
-