Package com.couchbase.client.core.config
Class NodeInfo
java.lang.Object
com.couchbase.client.core.config.NodeInfo
Default implementation of
NodeInfo
.- Since:
- 1.0
- Author:
- Michael Nitschinger
-
Constructor Summary
ConstructorDescriptionNodeInfo
(String viewUri, String hostname, Map<String, Integer> ports, Map<String, AlternateAddress> alternateAddresses) Creates a newNodeInfo
with no SSL services.NodeInfo
(String hostname, Map<ServiceType, Integer> direct, Map<ServiceType, Integer> ssl, Map<String, AlternateAddress> alternateAddresses) 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) 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) 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.
-
-
Method Details