Package org.elasticsearch.node
Class InternalSettingsPreparer
java.lang.Object
org.elasticsearch.node.InternalSettingsPreparer
public class InternalSettingsPreparer
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description InternalSettingsPreparer() -
Method Summary
Modifier and Type Method Description static EnvironmentprepareEnvironment(Settings input, java.util.Map<java.lang.String,java.lang.String> properties, java.nio.file.Path configPath, java.util.function.Supplier<java.lang.String> defaultNodeName)Prepares the settings by gathering all elasticsearch system properties, optionally loading the configuration settings.static SettingsprepareSettings(Settings input)Prepares settings for the transport client by gathering all elasticsearch system properties and setting defaults.
-
Constructor Details
-
InternalSettingsPreparer
public InternalSettingsPreparer()
-
-
Method Details
-
prepareSettings
Prepares settings for the transport client by gathering all elasticsearch system properties and setting defaults. -
prepareEnvironment
public static Environment prepareEnvironment(Settings input, java.util.Map<java.lang.String,java.lang.String> properties, java.nio.file.Path configPath, java.util.function.Supplier<java.lang.String> defaultNodeName)Prepares the settings by gathering all elasticsearch 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
-