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 TypeMethodDescriptionbooleaninthashCode()booleanReturns whether or not the node could be elected cluster-manager.booleanisData()Returns whether or not the node stores data.booleanisIngest()Returns whether or not the node runs ingest pipelines.booleanDeprecated.booleanisSearch()Returns whether the node is dedicated to provide search capability.toString()
-
Constructor Details
-
Roles
Create aNode.Rolesinstance 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()