Class NodeIdentifier
java.lang.Object
com.couchbase.client.core.topology.NodeIdentifier
-
Constructor Summary
ConstructorsConstructorDescriptionNodeIdentifier(HostAndPort canonical, String hostForNetworkConnections, @Nullable String uuid) NodeIdentifier(String canonicalHost, int canonicalPort, String hostForNetworkConnections) Creates an instance with a synthetic UUID derived from the canonical host and port.NodeIdentifier(String canonicalHost, int canonicalPort, String hostForNetworkConnections, @Nullable String uuid) -
Method Summary
Modifier and TypeMethodDescriptionReturns manager host:port on the default network.booleanstatic NodeIdentifierforBootstrap(String bootstrapHost, int bootstrapPort) inthashCode()toLegacy()Deprecated.toString()uuid()Returns an opaque string that uniquely identifies this node within the cluster.
-
Constructor Details
-
NodeIdentifier
Creates an instance with a synthetic UUID derived from the canonical host and port. -
NodeIdentifier
public NodeIdentifier(String canonicalHost, int canonicalPort, String hostForNetworkConnections, @Nullable String uuid) - Parameters:
uuid- The node's UUID, or null to derive a synthetic UUID from the canonical host and port.
-
NodeIdentifier
public NodeIdentifier(HostAndPort canonical, String hostForNetworkConnections, @Nullable String uuid) - Parameters:
uuid- The node's UUID, or null to derive a synthetic UUID from the canonical host and port.
-
-
Method Details
-
forBootstrap
-
uuid
Returns an opaque string that uniquely identifies this node within the cluster. -
canonical
Returns manager host:port on the default network.The SDK should not attempt to connect to this address, because it might not be accessible on the client's network. If you're looking for an address to connect to, see
hostForNetworkConnections. -
toLegacy
Deprecated. -
hostForNetworkConnections
-
equals
-
hashCode
public int hashCode() -
toString
-