Class Node

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class Node
    extends java.lang.Object
    implements java.io.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 Detail

      • WRITE_PORTS_FILE_SETTING

        public static final Setting<java.lang.Boolean> WRITE_PORTS_FILE_SETTING
      • NODE_DATA_SETTING

        public static final Setting<java.lang.Boolean> NODE_DATA_SETTING
      • NODE_MASTER_SETTING

        public static final Setting<java.lang.Boolean> NODE_MASTER_SETTING
      • NODE_INGEST_SETTING

        public static final Setting<java.lang.Boolean> NODE_INGEST_SETTING
      • NODE_LOCAL_STORAGE_SETTING

        public static final Setting<java.lang.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<java.lang.String> NODE_NAME_SETTING
      • BREAKER_TYPE_KEY

        public static final Setting<java.lang.String> BREAKER_TYPE_KEY
    • Constructor Detail

      • Node

        protected Node​(Environment environment,
                       java.util.Collection<java.lang.Class<? extends Plugin>> classpathPlugins,
                       boolean forbidPrivateIndexSettings)
        Constructs a node
        Parameters:
        environment - the environment for this node
        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