Class NodeIdentifier

java.lang.Object
com.couchbase.client.core.node.NodeIdentifier

@Deprecated public class NodeIdentifier extends Object
Deprecated.
In favor of NodeIdentifier
Uniquely identifies a node within the cluster, using the node's host and manager port from the default network.
  • Constructor Details

    • NodeIdentifier

      @Deprecated public NodeIdentifier(String canonicalHost, int canonicalManagerPort)
      Deprecated.
    • NodeIdentifier

      public NodeIdentifier(HostAndPort canonicalAddress, String hostForNetworkConnections)
      Deprecated.
  • Method Details

    • hostForNetworkConnections

      public String hostForNetworkConnections() throws NoSuchElementException
      Deprecated.
      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
    • asTopologyNodeIdentifier

      @Internal public NodeIdentifier asTopologyNodeIdentifier()
      Deprecated.
    • address

      public String address()
      Deprecated.
      Returns the node's host on the default network.
    • managerPort

      public int managerPort()
      Deprecated.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object