Class NodeConfigurationSource

java.lang.Object
org.elasticsearch.test.NodeConfigurationSource

public abstract class NodeConfigurationSource extends Object
  • Field Details

  • Constructor Details

    • NodeConfigurationSource

      public NodeConfigurationSource()
  • Method Details

    • nodeSettings

      public abstract Settings nodeSettings(int nodeOrdinal, Settings otherSettings)
      The settings for the node represented by the given ordinal, or null if there are no settings defined. The provided otherSettings 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 constructed
      otherSettings - the override settings
      Returns:
      the settings for this node
    • nodeConfigPath

      public abstract Path nodeConfigPath(int nodeOrdinal)
    • nodePlugins

      public Collection<Class<? extends Plugin>> nodePlugins()
      Returns plugins that should be loaded on the node