Package com.couchbase.client.core.node
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 Summary
Constructors Constructor Description NodeIdentifier(String address, int managerPort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
address()
boolean
equals(Object o)
int
hashCode()
int
managerPort()
String
toString()
-
-
-
Constructor Detail
-
NodeIdentifier
public NodeIdentifier(String address, int managerPort)
-
-