Class Node.Roles

java.lang.Object
org.opensearch.client.Node.Roles
Enclosing class:
Node

public static final class Node.Roles extends Object
Role information about an OpenSearch process.
  • Constructor Details

    • Roles

      public Roles(Set<String> roles)
      Create a Node.Roles instance 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 public boolean isMasterEligible()
      Deprecated.
      As of 2.2, because supporting inclusive language, replaced by isClusterManagerEligible()
      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 String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object