Skip navigation links
org.elasticsearch.node

Class NodeBuilder

    • Constructor Detail

      • NodeBuilder

        public NodeBuilder()
    • Method Detail

      • settings

        public ImmutableSettings.Builder settings()
        Set addition settings simply by working directly against the settings builder.
      • getSettings

        public ImmutableSettings.Builder getSettings()
        Set addition settings simply by working directly against the settings builder.
      • loadConfigSettings

        public NodeBuilder loadConfigSettings(boolean loadConfigSettings)
        Should the node builder automatically try and load config settings from the file system / classpath. Defaults to true.
      • client

        public NodeBuilder client(boolean client)
        Is the node going to be a client node which means it will hold no data (node.data is set to false) and other optimizations by different modules.
        Parameters:
        client - Should the node be just a client node or not.
      • data

        public NodeBuilder data(boolean data)
        Is the node going to be allowed to allocate data (shards) to it or not. This setting map to the node.data setting. Note, when setting client(boolean), the node will not hold any data by default.
        Parameters:
        data - Should the node be allocated data to or not.
      • local

        public NodeBuilder local(boolean local)
        Is the node a local node. A local node is a node that uses a local (JVM level) discovery and transport. Other (local) nodes started within the same JVM (actually, class-loader) will be discovered and communicated with. Nodes outside of the JVM will not be discovered.
        Parameters:
        local - Should the node be local or not
      • clusterName

        public NodeBuilder clusterName(String clusterName)
        The cluster name this node is part of (maps to the cluster.name setting). Defaults to elasticsearch.
        Parameters:
        clusterName - The cluster name this node is part of.
      • build

        public Node build()
        Builds the node without starting it.
      • node

        public Node node()
        build()s and starts the node.

Copyright © 2009–2015. All rights reserved.