Class NodeConfigurationSource

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

public abstract class NodeConfigurationSource
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    static NodeConfigurationSource EMPTY  
  • Constructor Summary

    Constructors
    Constructor Description
    NodeConfigurationSource()  
  • Method Summary

    Modifier and Type Method Description
    abstract java.nio.file.Path nodeConfigPath​(int nodeOrdinal)  
    java.util.Collection<java.lang.Class<? extends org.elasticsearch.plugins.Plugin>> nodePlugins()
    Returns plugins that should be loaded on the node
    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.
    java.util.Collection<java.lang.Class<? extends org.elasticsearch.plugins.Plugin>> transportClientPlugins()
    Returns plugins that should be loaded in the transport client
    org.elasticsearch.common.settings.Settings transportClientSettings()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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 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 java.nio.file.Path nodeConfigPath​(int nodeOrdinal)
    • nodePlugins

      public java.util.Collection<java.lang.Class<? extends org.elasticsearch.plugins.Plugin>> nodePlugins()
      Returns plugins that should be loaded on the node
    • transportClientSettings

      public org.elasticsearch.common.settings.Settings transportClientSettings()
    • transportClientPlugins

      public java.util.Collection<java.lang.Class<? extends org.elasticsearch.plugins.Plugin>> transportClientPlugins()
      Returns plugins that should be loaded in the transport client