Package com.couchbase.client.core.node
Class NodeIdentifier
java.lang.Object
com.couchbase.client.core.node.NodeIdentifier
Uniquely identifies a node within the cluster, using the node's
host and manager port from the default network.
-
Constructor Summary
ConstructorDescriptionNodeIdentifier
(HostAndPort canonicalAddress, String hostForNetworkConnections) NodeIdentifier
(String canonicalHost, int canonicalManagerPort) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionaddress()
Returns the node's host on the default network.boolean
static NodeIdentifier
forBootstrap
(String bootstrapHost, int bootstrapPort) int
hashCode()
Returns this node's host on the selected network.int
toString()
-
Constructor Details
-
NodeIdentifier
Deprecated. -
NodeIdentifier
-
-
Method Details
-
forBootstrap
-
hostForNetworkConnections
Returns this node's host on the selected network.If the default network was selected, this is the same as the canonical host.
- Throws:
NoSuchElementException
- if this info is not available
-
address
Returns the node's host on the default network. -
managerPort
public int managerPort() -
toString
-
equals
-
hashCode
public int hashCode()
-