org.elasticsearch.node

Class NodeBuilder

    • Constructor Summary

      Constructors 
      Constructor and Description
      NodeBuilder() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      Node build()
      Builds the node without starting it.
      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.
      NodeBuilder clusterName(java.lang.String clusterName)
      The cluster name this node is part of (maps to the cluster.name setting).
      NodeBuilder data(boolean data)
      Is the node going to be allowed to allocate data (shards) to it or not.
      Settings.Builder getSettings()
      Set addition settings simply by working directly against the settings builder.
      NodeBuilder local(boolean local)
      Is the node a local node.
      Node node()
      build()s and starts the node.
      static NodeBuilder nodeBuilder()
      A convenient factory method to create a NodeBuilder.
      Settings.Builder settings()
      Set addition settings simply by working directly against the settings builder.
      NodeBuilder settings(Settings.Builder settings)
      Explicit node settings to set.
      NodeBuilder settings(Settings settings)
      Explicit node settings to set.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NodeBuilder

        public NodeBuilder()
    • Method Detail

      • settings

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

        public Settings.Builder getSettings()
        Set addition settings simply by working directly against the settings builder.
      • 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(java.lang.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.