Constructor and Description |
---|
DefaultPortInfo(Map<String,Integer> services,
String hostname,
Map<String,AlternateAddress> aa)
Creates a new
DefaultPortInfo . |
Modifier and Type | Method and Description |
---|---|
Map<String,AlternateAddress> |
alternateAddresses() |
String |
hostname() |
Map<ServiceType,Integer> |
ports() |
Map<ServiceType,Integer> |
sslPorts() |
String |
toString() |
public DefaultPortInfo(Map<String,Integer> services, String hostname, Map<String,AlternateAddress> aa)
DefaultPortInfo
.
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.services
- the list of services mapping to ports.public Map<ServiceType,Integer> ports()
public Map<ServiceType,Integer> sslPorts()
public Map<String,AlternateAddress> alternateAddresses()
alternateAddresses
in interface PortInfo
Copyright © 2021 Couchbase, Inc.. All rights reserved.