Class TransportHttpClient.Node
java.lang.Object
co.elastic.clients.transport.http.TransportHttpClient.Node
- Enclosing interface:
- TransportHttpClient
A node/host to send requests to.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Node
Create a node with its URI, roles and attributes.If the URI doesn't end with a '
/
', then one is added.- Parameters:
uri
- the node's URIroles
- the node's roles (such as "master", "ingest", etc). This can be used for routing decisions by multi-node implementations.attributes
- the node's attributes. This can be used for routing decisions by multi-node implementations.
-
Node
-
Node
-
-
Method Details
-
uri
The URI of this node. This is an absolute URL with a path ending with a "/". -
toString
-
equals
Two nodes are considered equal if their URIs are equal. Roles and attributes are ignored. -
hashCode
public int hashCode()A node's hash code is that of its URI. Roles and attributes are ignored.
-