java.lang.Object
co.elastic.clients.transport.rest5_client.low_level.Node

public class Node extends Object
Metadata about an HttpHost running Elasticsearch.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Role information about an Elasticsearch process.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Node(org.apache.hc.core5.http.HttpHost host)
    Create a Node without any metadata.
    Node(org.apache.hc.core5.http.HttpHost host, Set<org.apache.hc.core5.http.HttpHost> boundHosts, String name, String version, Node.Roles roles, Map<String,List<String>> attributes)
    Create a Node with metadata.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Attributes declared on the node.
    Set<org.apache.hc.core5.http.HttpHost>
    Addresses on which the host is listening.
    org.apache.hc.core5.http.HttpHost
    Contact information for the host.
    The node.name of the node.
    Roles that the Elasticsearch process on the host has or null if we don't know what roles the node has.
    Version of Elasticsearch that the node is running or null if we don't know the version.
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Node

      public Node(org.apache.hc.core5.http.HttpHost host, Set<org.apache.hc.core5.http.HttpHost> boundHosts, String name, String version, Node.Roles roles, Map<String,List<String>> attributes)
      Create a Node with metadata. All parameters except host are nullable and implementations of NodeSelector need to decide what to do in their absence.
    • Node

      public Node(org.apache.hc.core5.http.HttpHost host)
      Create a Node without any metadata.
  • Method Details

    • getHost

      public org.apache.hc.core5.http.HttpHost getHost()
      Contact information for the host.
    • getBoundHosts

      public Set<org.apache.hc.core5.http.HttpHost> getBoundHosts()
      Addresses on which the host is listening. These are useful to have around because they allow you to find a host based on any address it is listening on.
    • getName

      public String getName()
      The node.name of the node.
    • getVersion

      public String getVersion()
      Version of Elasticsearch that the node is running or null if we don't know the version.
    • getRoles

      public Node.Roles getRoles()
      Roles that the Elasticsearch process on the host has or null if we don't know what roles the node has.
    • getAttributes

      public Map<String,List<String>> getAttributes()
      Attributes declared on the node.
    • 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