Module
public class ClusterModule extends AbstractModule
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
BALANCED_ALLOCATOR |
|
static Setting<java.lang.String> |
SHARDS_ALLOCATOR_TYPE_SETTING |
Constructor | Description |
---|---|
ClusterModule(Settings settings,
ClusterService clusterService,
java.util.List<ClusterPlugin> clusterPlugins,
ClusterInfoService clusterInfoService) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
configure() |
Configures a
Binder via the exposed methods. |
static java.util.Collection<AllocationDecider> |
createAllocationDeciders(Settings settings,
ClusterSettings clusterSettings,
java.util.List<ClusterPlugin> clusterPlugins) |
Return a new
AllocationDecider 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 deserialize
|
AllocationService |
getAllocationService() |
|
static java.util.Map<java.lang.String,java.util.function.Supplier<ClusterState.Custom>> |
getClusterStateCustomSuppliers(java.util.List<ClusterPlugin> clusterPlugins) |
|
IndexNameExpressionResolver |
getIndexNameExpressionResolver() |
|
static java.util.List<NamedWriteableRegistry.Entry> |
getNamedWriteables() |
|
static java.util.List<NamedXContentRegistry.Entry> |
getNamedXWriteables() |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
public static final java.lang.String BALANCED_ALLOCATOR
public static final Setting<java.lang.String> SHARDS_ALLOCATOR_TYPE_SETTING
public ClusterModule(Settings settings, ClusterService clusterService, java.util.List<ClusterPlugin> clusterPlugins, ClusterInfoService clusterInfoService)
public static java.util.Map<java.lang.String,java.util.function.Supplier<ClusterState.Custom>> getClusterStateCustomSuppliers(java.util.List<ClusterPlugin> clusterPlugins)
public static java.util.List<NamedWriteableRegistry.Entry> getNamedWriteables()
public static ClusterState filterCustomsForPre63Clients(ClusterState clusterState)
clusterState
- the cluster state to filter the customs frompublic static java.util.List<NamedXContentRegistry.Entry> getNamedXWriteables()
public IndexNameExpressionResolver getIndexNameExpressionResolver()
public static java.util.Collection<AllocationDecider> createAllocationDeciders(Settings settings, ClusterSettings clusterSettings, java.util.List<ClusterPlugin> clusterPlugins)
AllocationDecider
instance with builtin deciders as well as those from plugins.public AllocationService getAllocationService()
protected void configure()
AbstractModule
Binder
via the exposed methods.configure
in class AbstractModule