Class ClusterModule

  • All Implemented Interfaces:
    Module

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

      • 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
    • Method Detail

      • getClusterStateCustomSuppliers

        public static java.util.Map<java.lang.String,​java.util.function.Supplier<ClusterState.Custom>> getClusterStateCustomSuppliers​(java.util.List<ClusterPlugin> clusterPlugins)
      • 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