Package com.couchbase.client.core.config
Class NodeInfo
java.lang.Object
com.couchbase.client.core.config.NodeInfo
- All Implemented Interfaces:
KetamaRingNode
Deprecated.
Service addresses for one node of a Couchbase Server cluster.
-
Constructor Summary
ConstructorDescriptionNodeInfo
(String viewUri, String hostname, Map<String, Integer> ports, Map<String, AlternateAddress> alternateAddresses) Deprecated.Creates a newNodeInfo
with no SSL services.NodeInfo
(String hostname, Map<ServiceType, Integer> direct, Map<ServiceType, Integer> ssl, HostAndPort ketamaAuthority, NodeIdentifier nodeIdentifier) Deprecated.Creates an instance from pre-parsed address info.NodeInfo
(String hostname, Map<ServiceType, Integer> direct, Map<ServiceType, Integer> ssl, Map<String, AlternateAddress> alternateAddresses) Deprecated.Creates a newNodeInfo
with SSL services. -
Method Summary
-
Constructor Details
-
NodeInfo
public NodeInfo(String viewUri, String hostname, Map<String, Integer> ports, Map<String, AlternateAddress> alternateAddresses) Deprecated.Creates a newNodeInfo
with no SSL services.- Parameters:
viewUri
- the URI of the view service.hostname
- the hostname of the node.ports
- the port list of the node services.
-
NodeInfo
public NodeInfo(String hostname, Map<ServiceType, Integer> direct, Map<ServiceType, Integer> ssl, Map<String, AlternateAddress> alternateAddresses) Deprecated.Creates a newNodeInfo
with SSL services.- Parameters:
hostname
- the hostname of the node.direct
- the port list of the direct node services.ssl
- the port list of the ssl node services.
-
NodeInfo
@Internal public NodeInfo(String hostname, Map<ServiceType, Integer> direct, Map<ServiceType, Integer> ssl, @Nullable HostAndPort ketamaAuthority, NodeIdentifier nodeIdentifier) Deprecated.Creates an instance from pre-parsed address info.
-
-
Method Details
-
ketamaAuthority
Deprecated.Description copied from interface:KetamaRingNode
Returns a node's 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:
ketamaAuthority
in interfaceKetamaRingNode
-
hostname
Deprecated. -
identifier
Deprecated. -
services
Deprecated. -
sslServices
Deprecated. -
alternateAddresses
Deprecated. -
toString
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated.
-
HostAndServicePorts