Class TransportHttpClient.Node
java.lang.Object
co.elastic.clients.transport.http.TransportHttpClient.Node
- Enclosing interface:
- TransportHttpClient
A node/host to send requests to.
-
Constructor Details
-
Node
public Node(URI uri, @Nullable String name, @Nullable String version, @Nullable Set<String> roles, @Nullable Map<String, String> attributes) 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 URIname- the node name/identifierversion- the node's version, if knownroles- the node's roles, such as "master", "ingest", etc.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 "/". -
name
The node name/identifier -
version
-
roles
-
attributes
-
toString
-
equals
Two nodes are considered equal if their URIs are equal. Other properties are ignored. -
hashCode
public int hashCode()A node's hash code is that of its URI. Other properties are ignored.
-