org.elasticsearch.cluster.node
Class DiscoveryNodes.Builder
java.lang.Object
org.elasticsearch.cluster.node.DiscoveryNodes.Builder
- Enclosing class:
- DiscoveryNodes
public static class DiscoveryNodes.Builder
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiscoveryNodes.Builder
public DiscoveryNodes.Builder()
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