Class ClusterModule

java.lang.Object
org.elasticsearch.common.inject.AbstractModule
org.elasticsearch.cluster.ClusterModule
All Implemented Interfaces:
Module

public class ClusterModule
extends AbstractModule
Configures classes and services that affect the entire cluster.
  • Field Details

    • BALANCED_ALLOCATOR

      public static final java.lang.String BALANCED_ALLOCATOR
      See Also:
      Constant Field Values
    • SHARDS_ALLOCATOR_TYPE_SETTING

      public static final Setting<java.lang.String> SHARDS_ALLOCATOR_TYPE_SETTING
  • Constructor Details

  • Method Details

    • getNamedWriteables

      public static java.util.List<NamedWriteableRegistry.Entry> getNamedWriteables()
    • filterCustomsForPre63Clients

      public 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
      Parameters:
      clusterState - the cluster state to filter the customs from
      Returns:
      the adapted cluster state
    • getNamedXWriteables

      public static java.util.List<org.elasticsearch.common.xcontent.NamedXContentRegistry.Entry> getNamedXWriteables()
    • getIndexNameExpressionResolver

      public IndexNameExpressionResolver getIndexNameExpressionResolver()
    • createAllocationDeciders

      public 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.
    • getAllocationService

      public AllocationService getAllocationService()
    • getMetadataDeleteIndexService

      public MetadataDeleteIndexService getMetadataDeleteIndexService()
    • configure

      protected void configure()
      Description copied from class: AbstractModule
      Configures a Binder via the exposed methods.
      Specified by:
      configure in class AbstractModule
    • setExistingShardsAllocators

      public void setExistingShardsAllocators​(GatewayAllocator gatewayAllocator)