Package org.elasticsearch.client
Class Node
- java.lang.Object
-
- org.elasticsearch.client.Node
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNode.RolesRole information about an Elasticsearch process.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Map<String,List<String>>getAttributes()Attributes declared on the node.Set<HttpHost>getBoundHosts()Addresses on which the host is listening.HttpHostgetHost()Contact information for the host.StringgetName()Thenode.nameof the node.Node.RolesgetRoles()Roles that the Elasticsearch process on the host has ornullif we don't know what roles the node has.StringgetVersion()Version of Elasticsearch that the node is running ornullif we don't know the version.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
Node
public Node(HttpHost host, Set<HttpHost> boundHosts, String name, String version, Node.Roles roles, Map<String,List<String>> attributes)
Create a Node with metadata. All parameters excepthostare nullable and implementations ofNodeSelectorneed to decide what to do in their absence.
-
-
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()
Thenode.nameof the node.
-
getVersion
public String getVersion()
Version of Elasticsearch that the node is running ornullif we don't know the version.
-
getRoles
public Node.Roles getRoles()
Roles that the Elasticsearch process on the host has ornullif we don't know what roles the node has.
-
-