Class Node

java.lang.Object
org.opensearch.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.
Opensearch.internal:
  • Field Details

    • WRITE_PORTS_FILE_SETTING

      public static final Setting<Boolean> WRITE_PORTS_FILE_SETTING
    • NODE_LOCAL_STORAGE_SETTING

      public static final Setting<Boolean> NODE_LOCAL_STORAGE_SETTING
      controls whether the node is allowed to persist things like metadata to disk Note that this does not control whether the node stores actual indices (see NODE_DATA_SETTING). However, if this is false, NODE_DATA_SETTING and NODE_MASTER_SETTING must also be false.
    • NODE_NAME_SETTING

      public static final Setting<String> NODE_NAME_SETTING
    • NODE_ATTRIBUTES

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

      public static final Setting<String> BREAKER_TYPE_KEY
    • NODE_SEARCH_CACHE_SIZE_SETTING

      public static final Setting<org.opensearch.core.common.unit.ByteSizeValue> NODE_SEARCH_CACHE_SIZE_SETTING
  • Constructor Details

    • Node

      public Node(Environment environment)
    • Node

      protected Node(Environment initialEnvironment, Collection<Class<? extends Plugin>> classpathPlugins, boolean forbidPrivateIndexSettings)
      Constructs a node
      Parameters:
      initialEnvironment - the initial environment for this node, which will be added to by plugins
      classpathPlugins - the plugins to be loaded from the classpath
      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