Class Node


  • public class Node
    extends Object
    Metadata about an HttpHost running Elasticsearch.
    • Method Detail

      • getHost

        public HttpHost getHost()
        Contact information for the host.
      • getBoundHosts

        public Set<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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object