Package org.opensearch.client
Class Node.Roles
java.lang.Object
org.opensearch.client.Node.Roles
- Enclosing class:
Node
Role information about an OpenSearch process.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
Returns whether or not the node could be elected cluster-manager.boolean
isData()
Returns whether or not the node stores data.boolean
isIngest()
Returns whether or not the node runs ingest pipelines.boolean
Deprecated.boolean
isSearch()
Returns whether the node is dedicated to provide search capability.toString()
-
Constructor Details
-
Roles
Create aNode.Roles
instance of the given string set.- Parameters:
roles
- set of role names.
-
-
Method Details
-
isClusterManagerEligible
public boolean isClusterManagerEligible()Returns whether or not the node could be elected cluster-manager. -
isMasterEligible
Deprecated.As of 2.2, because supporting inclusive language, replaced byisClusterManagerEligible()
Returns whether or not the node could be elected cluster-manager. -
isData
public boolean isData()Returns whether or not the node stores data. -
isIngest
public boolean isIngest()Returns whether or not the node runs ingest pipelines. -
isSearch
public boolean isSearch()Returns whether the node is dedicated to provide search capability. -
toString
-
equals
-
hashCode
public int hashCode()
-
isClusterManagerEligible()