Package org.opensearch.common.settings
Class SettingsModule
java.lang.Object
org.opensearch.common.settings.SettingsModule
- All Implemented Interfaces:
Module
A module that binds the provided settings to the
Settings
interface.- Opensearch.internal:
-
Constructor Summary
ConstructorsConstructorDescriptionSettingsModule
(Settings settings, List<Setting<?>> additionalSettings, List<String> settingsFilter, Set<SettingUpgrader<?>> settingUpgraders) SettingsModule
(Settings settings, Setting<?>... additionalSettings) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Contributes bindings and other configurations for this module tobinder
.boolean
registerDynamicSetting
(Setting<?> setting) Dynamically registers a new Setting at Runtime.
-
Constructor Details
-
SettingsModule
-
SettingsModule
-
-
Method Details
-
configure
Description copied from interface:Module
Contributes bindings and other configurations for this module tobinder
.Do not invoke this method directly to install submodules. Instead use
Binder.install(Module)
, which ensures thatprovider methods
are discovered. -
registerDynamicSetting
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
-
getIndexScopedSettings
-
getClusterSettings
-
getConsistentSettings
-
getSettingsFilter
-