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
ConstructorsConstructorDescriptionNodeIdentifier(HostAndPort canonicalAddress, String hostForNetworkConnections) NodeIdentifier(String canonicalHost, int canonicalManagerPort) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the node's host on the default network.booleanstatic NodeIdentifierforBootstrap(String bootstrapHost, int bootstrapPort) inthashCode()Returns this node's host on the selected network.inttoString()
-
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()
-