Package org.elasticsearch.client
Class Node.Roles
java.lang.Object
org.elasticsearch.client.Node.Roles
- Enclosing class:
- Node
public static final class Node.Roles
extends java.lang.Object
Role information about an Elasticsearch process.
-
Constructor Summary
Constructors Constructor Description Roles(java.util.Set<java.lang.String> roles) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()booleanisData()Teturns whether or not the node stores data.booleanisIngest()Teturns whether or not the node runs ingest pipelines.booleanisMasterEligible()Teturns whether or not the node could be elected master.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Roles
public Roles(java.util.Set<java.lang.String> roles)
-
-
Method Details
-
isMasterEligible
public boolean isMasterEligible()Teturns whether or not the node could be elected master. -
isData
public boolean isData()Teturns whether or not the node stores data. -
isIngest
public boolean isIngest()Teturns whether or not the node runs ingest pipelines. -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-