Class SettingsModule

java.lang.Object
org.opensearch.common.settings.SettingsModule
All Implemented Interfaces:
Module

public class SettingsModule extends Object implements Module
A module that binds the provided settings to the Settings interface.
Opensearch.internal:
  • Constructor Details

  • Method Details

    • configure

      public void configure(Binder binder)
      Description copied from interface: Module
      Contributes bindings and other configurations for this module to binder.

      Do not invoke this method directly to install submodules. Instead use Binder.install(Module), which ensures that provider methods are discovered.

      Specified by:
      configure in interface Module
    • registerDynamicSetting

      public boolean registerDynamicSetting(Setting<?> setting)
      Dynamically registers a new Setting at Runtime. This method is mostly used by plugins/extensions to register new settings at runtime. Settings can be of Node Scope or Index Scope.
      Parameters:
      setting - which is being registered in the cluster.
      Returns:
      boolean value is set to true when successfully registered, else returns false
    • getSettings

      public Settings getSettings()
    • getIndexScopedSettings

      public IndexScopedSettings getIndexScopedSettings()
    • getClusterSettings

      public ClusterSettings getClusterSettings()
    • getConsistentSettings

      public Set<Setting<?>> getConsistentSettings()
    • getSettingsFilter

      public SettingsFilter getSettingsFilter()