Package org.elasticsearch.test
Class NodeConfigurationSource
java.lang.Object
org.elasticsearch.test.NodeConfigurationSource
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Path
nodeConfigPath(int nodeOrdinal)
Collection<Class<? extends org.elasticsearch.plugins.Plugin>>
Returns plugins that should be loaded on the nodeabstract org.elasticsearch.common.settings.Settings
nodeSettings(int nodeOrdinal, org.elasticsearch.common.settings.Settings otherSettings)
The settings for the node represented by the given ordinal, or null if there are no settings defined.Collection<Class<? extends org.elasticsearch.plugins.Plugin>>
Returns plugins that should be loaded in the transport clientorg.elasticsearch.common.settings.Settings
-
Field Details
-
EMPTY
-
-
Constructor Details
-
NodeConfigurationSource
public NodeConfigurationSource()
-
-
Method Details
-
nodeSettings
public abstract org.elasticsearch.common.settings.Settings nodeSettings(int nodeOrdinal, org.elasticsearch.common.settings.Settings otherSettings)The settings for the node represented by the given ordinal, or null if there are no settings defined. The providedotherSettings
are the override settings that the test framework will unconditionally apply to the settings returned by this method. These settings are provided so that implementors can make informed decisions about the values of settings they might wish to return, that would be invalid with certain combinations of the override settings that the test framework will apply.For example, imagine that some setting values are invalid if the node is a master-only node. The implementor can inspect the
otherSettings
to determine that the test framework is going to override the role settings for the node being constructed to be a master-only node, and therefore the implementor can ensure that it only returns valid values for the master-only node being constructed.- Parameters:
nodeOrdinal
- the ordinal of the node being constructedotherSettings
- the override settings- Returns:
- the settings for this node
-
nodeConfigPath
-
nodePlugins
Returns plugins that should be loaded on the node -
transportClientSettings
public org.elasticsearch.common.settings.Settings transportClientSettings() -
transportClientPlugins
Returns plugins that should be loaded in the transport client
-