Class HostAndServicePorts
java.lang.Object
com.couchbase.client.core.topology.HostAndServicePorts
- All Implemented Interfaces:
KetamaRingNode
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
ConstructorsConstructorDescriptionHostAndServicePorts(String host, Map<ServiceType, Integer> ports, NodeIdentifier id, @Nullable HostAndPort ketamaAuthority, @Nullable String serverGroup, @Nullable String appTelemetryPath, @Nullable String nodeUuid) -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the HTTP path that accepts application telemetry WebSocket connections (on management service part), or null if this node does not currently accept application telemetry connections.booleanbooleanhas(ServiceType serviceType) inthashCode()host()id()boolean@Nullable HostAndPortReturns the host and non-TLS KV port from the "default" network.port(ServiceType serviceType) ports()@Nullable StringReturns the name of the server group this node belongs to, or null if Couchbase Server version is less than 7.6.2.toString()@Nullable Stringuuid()Returns this node's UUID, or null if the Couchbase Server version is less than 8.0.0.withKetamaAuthority(@Nullable HostAndPort ketamaAuthority) without(ServiceType service, ServiceType... moreServices)
-
Field Details
-
INACCESSIBLE
-
-
Constructor Details
-
HostAndServicePorts
public HostAndServicePorts(String host, Map<ServiceType, Integer> ports, NodeIdentifier id, @Nullable HostAndPort ketamaAuthority, @Nullable String serverGroup, @Nullable String appTelemetryPath, @Nullable String nodeUuid)
-
-
Method Details
-
inaccessible
public boolean inaccessible() -
id
-
host
-
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.
- Specified by:
ketamaAuthorityin interfaceKetamaRingNode
-
port
-
ports
-
serverGroup
Returns the name of the server group this node belongs to, or null if Couchbase Server version is less than 7.6.2. -
appTelemetryPath
Returns the HTTP path that accepts application telemetry WebSocket connections (on management service part), or null if this node does not currently accept application telemetry connections. -
uuid
Returns this node's UUID, or null if the Couchbase Server version is less than 8.0.0. -
has
-
without
-
withKetamaAuthority
-
equals
-
hashCode
public int hashCode() -
toString
-