Class NodeIdentifier

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

public class NodeIdentifier extends Object
Identifies a node uniquely in the cluster.

If you ask yourself: why is the hostname not enough? Well, let me tell you that it is possible to run multiple nodes on the same host if you compile it from source and know how. So the hostname alone is not enough, we also need to know the cluster manager port to properly identify each node.

  • Constructor Details

    • NodeIdentifier

      public NodeIdentifier(String address, int managerPort)
  • Method Details

    • address

      public String address()
    • managerPort

      public int managerPort()
    • toString

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object