Package com.couchbase.client.core.config
Class NodeInfo
- java.lang.Object
-
- com.couchbase.client.core.config.NodeInfo
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,AlternateAddress>alternateAddresses()booleanequals(Object o)inthashCode()Stringhostname()NodeIdentifieridentifier()Map<ServiceType,Integer>services()Map<ServiceType,Integer>sslServices()StringtoString()
-
-
-
Constructor Detail
-
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 Detail
-
hostname
public String hostname()
-
identifier
public NodeIdentifier identifier()
-
services
public Map<ServiceType,Integer> services()
-
sslServices
public Map<ServiceType,Integer> sslServices()
-
alternateAddresses
public Map<String,AlternateAddress> alternateAddresses()
-
-