Class NodeInfo
java.lang.Object
com.couchbase.client.dcp.core.config.NodeInfo
Used for locating the services running on a node.
Consists of a host (hostname or IP literal) and a map from service to port number.
The ports are either all TLS ports, or all non-TLS ports, depending on
the PortSelector used by the config parser.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanhas(com.couchbase.client.core.service.ServiceType serviceType) inthashCode()host()hostname()Deprecated.id()booleancom.couchbase.client.core.util.HostAndPortReturns the host and non-TLS KV port from the "default" network.booleanmatches(com.couchbase.client.core.env.SeedNode seedNode) port(com.couchbase.client.core.service.ServiceType serviceType) ports()services()Deprecated.Please useports()instead.Deprecated.Please useports()instead.toString()
-
Field Details
-
INACCESSIBLE
-
-
Constructor Details
-
NodeInfo
-
-
Method Details
-
inaccessible
public boolean inaccessible() -
id
-
host
-
ketamaAuthority
@Nullable public com.couchbase.client.core.util.HostAndPort ketamaAuthority()Returns the host and non-TLS KV port from the "default" network.Used with Memcached buckets to determine which document IDs this node is responsible for.
If the node has no non-TLS KV port, then this method returns null, and the node cannot participate in a ketama ring.
-
port
-
ports
-
has
public boolean has(com.couchbase.client.core.service.ServiceType serviceType) -
matches
public boolean matches(com.couchbase.client.core.env.SeedNode seedNode) -
equals
-
hashCode
public int hashCode() -
toString
-
hostname
Deprecated.Please usehost()instead. -
services
Deprecated.Please useports()instead. -
sslServices
Deprecated.Please useports()instead.
-
host()instead.