public class InternalSettingsPreparer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
IGNORE_SYSTEM_PROPERTIES_SETTING |
static String |
SECRET_PROMPT_VALUE |
static String |
TEXT_PROMPT_VALUE |
Constructor and Description |
---|
InternalSettingsPreparer() |
Modifier and Type | Method and Description |
---|---|
static Tuple<Settings,Environment> |
prepareSettings(Settings pSettings,
boolean loadConfigSettings)
Prepares the settings by gathering all elasticsearch system properties, optionally loading the configuration settings,
and then replacing all property placeholders.
|
static Tuple<Settings,Environment> |
prepareSettings(Settings pSettings,
boolean loadConfigSettings,
Terminal terminal)
Prepares the settings by gathering all elasticsearch system properties, optionally loading the configuration settings,
and then replacing all property placeholders.
|
public static final String SECRET_PROMPT_VALUE
public static final String TEXT_PROMPT_VALUE
public static final String IGNORE_SYSTEM_PROPERTIES_SETTING
public static Tuple<Settings,Environment> prepareSettings(Settings pSettings, boolean loadConfigSettings)
${prompt.text}
or ${prompt.secret}
as their value unless they have been resolved previously.pSettings
- The initial settings to useloadConfigSettings
- flag to indicate whether to load settings from the configuration directory/fileSettings
and Environment
as a Tuple
public static Tuple<Settings,Environment> prepareSettings(Settings pSettings, boolean loadConfigSettings, Terminal terminal)
Terminal
is provided and configuration settings are loaded,
settings with a value of ${prompt.text}
or ${prompt.secret}
will result in a prompt for
the setting to the user.pSettings
- The initial settings to useloadConfigSettings
- flag to indicate whether to load settings from the configuration directory/fileterminal
- the Terminal to use for input/outputSettings
and Environment
as a Tuple
Copyright © 2009–2016. All rights reserved.