Package org.opensearch.node
Class InternalSettingsPreparer
java.lang.Object
org.opensearch.node.InternalSettingsPreparer
Prepares internal settings
- Opensearch.internal:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Environment
prepareEnvironment
(Settings input, Map<String, String> properties, Path configPath, Supplier<String> defaultNodeName) Prepares the settings by gathering all opensearch system properties, optionally loading the configuration settings.static Settings
prepareSettings
(Settings input) TODO: Refactor this as transport client is removed and this used to prepare settings for the transport client by gathering all opensearch system properties and setting defaults.
-
Constructor Details
-
InternalSettingsPreparer
public InternalSettingsPreparer()
-
-
Method Details
-
prepareSettings
TODO: Refactor this as transport client is removed and this used to prepare settings for the transport client by gathering all opensearch system properties and setting defaults. -
prepareEnvironment
public static Environment prepareEnvironment(Settings input, Map<String, String> properties, Path configPath, Supplier<String> defaultNodeName) Prepares the settings by gathering all opensearch system properties, optionally loading the configuration settings.- Parameters:
input
- the custom settings to use; these are not overwritten by settings in the configuration fileproperties
- map of properties key/value pairs (usually from the command-line)configPath
- path to config directory; (use null to indicate the default)defaultNodeName
- supplier for the default node.name if the setting isn't defined- Returns:
- the
Environment
-