Package com.couchbase.client.core.config
Class DefaultPortInfo
- java.lang.Object
-
- com.couchbase.client.core.config.DefaultPortInfo
-
-
Constructor Summary
Constructors Constructor Description DefaultPortInfo(Map<String,Integer> services, String hostname, Map<String,AlternateAddress> aa)
Creates a newDefaultPortInfo
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,AlternateAddress>
alternateAddresses()
String
hostname()
Map<ServiceType,Integer>
ports()
Map<ServiceType,Integer>
sslPorts()
String
toString()
-
-
-
Constructor Detail
-
DefaultPortInfo
public DefaultPortInfo(Map<String,Integer> services, String hostname, Map<String,AlternateAddress> aa)
Creates a newDefaultPortInfo
. Note that if the hostname is null (not provided by the server), it is explicitly set to null because otherwise the loaded InetAddress would point to localhost.- Parameters:
services
- the list of services mapping to ports.
-
-
Method Detail
-
ports
public Map<ServiceType,Integer> ports()
-
sslPorts
public Map<ServiceType,Integer> sslPorts()
-
alternateAddresses
public Map<String,AlternateAddress> alternateAddresses()
- Specified by:
alternateAddresses
in interfacePortInfo
-
-