Class SettingsModule
java.lang.Object
org.elasticsearch.common.settings.SettingsModule
- All Implemented Interfaces:
Module
public class SettingsModule extends java.lang.Object implements Module
A module that binds the provided settings to the
Settings
interface.-
Constructor Summary
Constructors Constructor Description SettingsModule(Settings settings, java.util.List<Setting<?>> additionalSettings, java.util.List<java.lang.String> settingsFilter, java.util.Set<SettingUpgrader<?>> settingUpgraders)
SettingsModule(Settings settings, Setting<?>... additionalSettings)
-
Method Summary
Modifier and Type Method Description void
configure(Binder binder)
Contributes bindings and other configurations for this module tobinder
.ClusterSettings
getClusterSettings()
java.util.Set<Setting<?>>
getConsistentSettings()
IndexScopedSettings
getIndexScopedSettings()
Settings
getSettings()
SettingsFilter
getSettingsFilter()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SettingsModule
-
SettingsModule
public SettingsModule(Settings settings, java.util.List<Setting<?>> additionalSettings, java.util.List<java.lang.String> settingsFilter, java.util.Set<SettingUpgrader<?>> settingUpgraders)
-
-
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. -
getSettings
-
getIndexScopedSettings
-
getClusterSettings
-
getConsistentSettings
-
getSettingsFilter
-