Package org.elasticsearch.cluster.node
Class DiscoveryNodes.Builder
java.lang.Object
org.elasticsearch.cluster.node.DiscoveryNodes.Builder
- Enclosing class:
- DiscoveryNodes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd(DiscoveryNode node)
adds a disco node to the builder.build()
Get a node by its idboolean
localNodeId(String localNodeId)
masterNodeId(String masterNodeId)
remove(DiscoveryNode node)
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
add
adds a disco node to the builder. Will throw anIllegalArgumentException
if the supplied node doesn't pass the pre-flight checks performed byvalidateAdd(DiscoveryNode)
-
get
Get a node by its id- Parameters:
nodeId
- id of the wanted node- Returns:
- wanted node if it exists. Otherwise
null
-
remove
-
remove
-
masterNodeId
-
localNodeId
-
build
-
isLocalNodeElectedMaster
public boolean isLocalNodeElectedMaster()
-