Package com.couchbase.client.core.config
Class NodeInfo
java.lang.Object
com.couchbase.client.core.config.NodeInfo
public class NodeInfo extends Object
Default implementation of
NodeInfo.- Since:
- 1.0
- Author:
- Michael Nitschinger
-
Constructor Summary
Constructors Constructor Description NodeInfo(String viewUri, String hostname, Map<String,Integer> ports, Map<String,AlternateAddress> alternateAddresses)Creates a newNodeInfowith no SSL services.NodeInfo(String hostname, Map<ServiceType,Integer> direct, Map<ServiceType,Integer> ssl, Map<String,AlternateAddress> alternateAddresses)Creates a newNodeInfowith SSL services. -
Method Summary
Modifier and Type Method Description Map<String,AlternateAddress>alternateAddresses()Stringhostname()NodeIdentifieridentifier()Map<ServiceType,Integer>services()Map<ServiceType,Integer>sslServices()StringtoString()
-
Constructor Details
-
NodeInfo
public NodeInfo(String viewUri, String hostname, Map<String,Integer> ports, Map<String,AlternateAddress> alternateAddresses)Creates a newNodeInfowith 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 newNodeInfowith 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