java.lang.Object
org.elasticsearch.cluster.node.DiscoveryNodes.Builder
- Enclosing class:
- DiscoveryNodes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionadd(DiscoveryNode node) adds a disco node to the builder.build()Get a node by its idbooleanlocalNodeId(String localNodeId) masterNodeId(String masterNodeId) remove(DiscoveryNode node) 
- 
Constructor Details- 
Builderpublic Builder()
- 
Builder
 
- 
- 
Method Details- 
addadds a disco node to the builder. Will throw anIllegalArgumentExceptionif the supplied node doesn't pass the pre-flight checks performed byvalidateAdd(DiscoveryNode)
- 
getGet 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
- 
isLocalNodeElectedMasterpublic boolean isLocalNodeElectedMaster()
 
-