Class ClusterModule

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  BALANCED_ALLOCATOR
      See Also:
      Constant Field Values
    • SHARDS_ALLOCATOR_TYPE_SETTING

      public static final > SHARDS_ALLOCATOR_TYPE_SETTING
  • Constructor Details

  • Method Details

    • getNamedWriteables

      public static <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 <org.elasticsearch.common.xcontent.NamedXContentRegistry.Entry> getNamedXWriteables()
    • getIndexNameExpressionResolver

      public IndexNameExpressionResolver getIndexNameExpressionResolver()
    • createAllocationDeciders

      public static <AllocationDecider> createAllocationDeciders(Settings settings, ClusterSettings clusterSettings, <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)