Class Node

java.lang.Object
org.elasticsearch.node.Node
All Implemented Interfaces:
Closeable, AutoCloseable

public class Node extends Object implements Closeable
A node represent a node within a cluster (cluster.name). The client() can be used in order to use a Client to perform actions/operations against the cluster.
  • Field Details

    • WRITE_PORTS_FILE_SETTING

      public static final Setting<Boolean> WRITE_PORTS_FILE_SETTING
    • NODE_NAME_SETTING

      public static final Setting<String> NODE_NAME_SETTING
    • NODE_EXTERNAL_ID_SETTING

      public static final Setting<String> NODE_EXTERNAL_ID_SETTING
    • NODE_ATTRIBUTES

      public static final Setting.AffixSetting<String> NODE_ATTRIBUTES
    • BREAKER_TYPE_KEY

      public static final Setting<String> BREAKER_TYPE_KEY
    • INITIAL_STATE_TIMEOUT_SETTING

      public static final Setting<TimeValue> INITIAL_STATE_TIMEOUT_SETTING
  • Constructor Details

    • Node

      public Node(Environment environment)
      Constructs a node
      Parameters:
      environment - the initial environment for this node, which will be added to by plugins
    • Node

      protected Node(Environment initialEnvironment, Function<Settings,PluginsService> pluginServiceCtor, boolean forbidPrivateIndexSettings)
      Constructs a node
      Parameters:
      initialEnvironment - the initial environment for this node, which will be added to by plugins
      pluginServiceCtor - a function that takes a Settings object and returns a PluginsService
      forbidPrivateIndexSettings - whether or not private index settings are forbidden when creating an index; this is used in the test framework for tests that rely on being able to set private settings
  • Method Details