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 boolean
canContainData()
boolean
equals(java.lang.Object obj)
boolean
hasDataColdRole()
boolean
hasDataContentRole()
boolean
hasDataFrozenRole()
boolean
hasDataHotRole()
boolean
hasDataRole()
boolean
hasDataWarmRole()
int
hashCode()
boolean
isData()
Deprecated.boolean
isIngest()
Returns whether or not the node runs ingest pipelines.boolean
isMasterEligible()
Returns whether or not the node could be elected master.java.lang.String
toString()
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()Returns whether or not the node could be elected master. -
isData
@Deprecated public boolean isData()Deprecated.usehasDataRole()
orcanContainData()
Returns whether or not the node stores data. -
hasDataRole
public boolean hasDataRole()- Returns:
- true if node has the "data" role
-
hasDataContentRole
public boolean hasDataContentRole()- Returns:
- true if node has the "data_content" role
-
hasDataHotRole
public boolean hasDataHotRole()- Returns:
- true if node has the "data_hot" role
-
hasDataWarmRole
public boolean hasDataWarmRole()- Returns:
- true if node has the "data_warm" role
-
hasDataColdRole
public boolean hasDataColdRole()- Returns:
- true if node has the "data_cold" role
-
hasDataFrozenRole
public boolean hasDataFrozenRole()- Returns:
- true if node has the "data_frozen" role
-
canContainData
public boolean canContainData()- Returns:
- true if node stores any type of data
-
isIngest
public boolean isIngest()Returns whether or not the node runs ingest pipelines. -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
hasDataRole()
orcanContainData()