Package org.elasticsearch.client
Class Node
java.lang.Object
org.elasticsearch.client.Node
Metadata about an
HttpHost
running Elasticsearch.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Role information about an Elasticsearch process. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Attributes declared on the node.Set<org.apache.http.HttpHost>
Addresses on which the host is listening.org.apache.http.HttpHost
getHost()
Contact information for the host.getName()
Thenode.name
of the node.getRoles()
Roles that the Elasticsearch process on the host has ornull
if we don't know what roles the node has.Version of Elasticsearch that the node is running ornull
if we don't know the version.int
hashCode()
toString()
-
Constructor Details
-
Node
public Node(org.apache.http.HttpHost host, Set<org.apache.http.HttpHost> boundHosts, String name, String version, Node.Roles roles, Map<String, List<String>> attributes) Create a Node with metadata. All parameters excepthost
are nullable and implementations ofNodeSelector
need to decide what to do in their absence. -
Node
public Node(org.apache.http.HttpHost host) Create a Node without any metadata.
-
-
Method Details
-
getHost
public org.apache.http.HttpHost getHost()Contact information for the host. -
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
Thenode.name
of the node. -
getVersion
Version of Elasticsearch that the node is running ornull
if we don't know the version. -
getRoles
Roles that the Elasticsearch process on the host has ornull
if we don't know what roles the node has. -
getAttributes
Attributes declared on the node. -
toString
-
equals
-
hashCode
public int hashCode()
-