org.elasticsearch.cluster.node
Class DiscoveryNodes.Builder

java.lang.Object
  extended by org.elasticsearch.cluster.node.DiscoveryNodes.Builder
Enclosing class:
DiscoveryNodes

public static class DiscoveryNodes.Builder
extends java.lang.Object


Constructor Summary
DiscoveryNodes.Builder()
           
 
Method Summary
 DiscoveryNodes build()
           
 DiscoveryNodes.Builder localNodeId(java.lang.String localNodeId)
           
 DiscoveryNodes.Builder masterNodeId(java.lang.String masterNodeId)
           
 DiscoveryNodes.Builder put(DiscoveryNode node)
           
 DiscoveryNodes.Builder putAll(DiscoveryNodes nodes)
           
 DiscoveryNodes.Builder putAll(java.lang.Iterable<DiscoveryNode> nodes)
           
static DiscoveryNodes readFrom(StreamInput in, DiscoveryNode localNode)
           
 DiscoveryNodes.Builder remove(java.lang.String nodeId)
           
static void writeTo(DiscoveryNodes nodes, StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscoveryNodes.Builder

public DiscoveryNodes.Builder()
Method Detail

putAll

public DiscoveryNodes.Builder putAll(DiscoveryNodes nodes)

put

public DiscoveryNodes.Builder put(DiscoveryNode node)

putAll

public DiscoveryNodes.Builder putAll(java.lang.Iterable<DiscoveryNode> nodes)

remove

public DiscoveryNodes.Builder remove(java.lang.String nodeId)

masterNodeId

public DiscoveryNodes.Builder masterNodeId(java.lang.String masterNodeId)

localNodeId

public DiscoveryNodes.Builder localNodeId(java.lang.String localNodeId)

build

public DiscoveryNodes build()

writeTo

public static void writeTo(DiscoveryNodes nodes,
                           StreamOutput out)
                    throws java.io.IOException
Throws:
java.io.IOException

readFrom

public static DiscoveryNodes readFrom(StreamInput in,
                                      @Nullable
                                      DiscoveryNode localNode)
                               throws java.io.IOException
Throws:
java.io.IOException