Class Node.Roles
java.lang.Object
org.opensearch.client.transport.httpclient5.internal.Node.Roles
- Enclosing class:
Node
Role information about an OpenSearch process.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare two roles for equalityinthashCode()Calculate the hash code of the rolesbooleanReturns 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()Convert roles to string representation
-
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
Convert roles to string representation -
equals
Compare two roles for equality -
hashCode
public int hashCode()Calculate the hash code of the roles
-
isClusterManagerEligible()