Class Node.Roles
- java.lang.Object
-
- org.opensearch.client.transport.httpclient5.internal.Node.Roles
-
- Enclosing class:
- Node
public static final class Node.Roles extends java.lang.ObjectRole information about an OpenSearch process.
-
-
Constructor Summary
Constructors Constructor Description Roles(java.util.Set<java.lang.String> roles)Create aNode.Rolesinstance of the given string set.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Compare two roles for equalityinthashCode()Calculate the hash code of the rolesbooleanisClusterManagerEligible()Returns 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.booleanisMasterEligible()Deprecated.As of 2.2, because supporting inclusive language, replaced byisClusterManagerEligible()booleanisSearch()Returns whether the node is dedicated to provide search capability.java.lang.StringtoString()Convert roles to string representation
-
-
-
Constructor Detail
-
Roles
public Roles(java.util.Set<java.lang.String> roles)
Create aNode.Rolesinstance of the given string set.- Parameters:
roles- set of role names.
-
-
Method Detail
-
isClusterManagerEligible
public boolean isClusterManagerEligible()
Returns whether or not the node could be elected cluster-manager.
-
isMasterEligible
@Deprecated public boolean 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
public java.lang.String toString()
Convert roles to string representation- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Compare two roles for equality- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- roles instance to compare with
-
hashCode
public int hashCode()
Calculate the hash code of the roles- Overrides:
hashCodein classjava.lang.Object
-
-