Package org.elasticsearch.client
Class Node.Roles
java.lang.Object
org.elasticsearch.client.Node.Roles
- Enclosing class:
- Node
Role information about an Elasticsearch process.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Roles
-
-
Method Details
-
isMasterEligible
public boolean isMasterEligible()Returns whether or not the node could be elected master. -
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
-
equals
-
hashCode
public int hashCode()
-
hasDataRole()
orcanContainData()