Constructor and Description |
---|
DefaultPortInfo(Map<String,Integer> services,
String hostname)
Creates a new
DefaultPortInfo . |
Modifier and Type | Method and Description |
---|---|
NetworkAddress |
hostname() |
Map<ServiceType,Integer> |
ports() |
Map<ServiceType,Integer> |
sslPorts() |
String |
toString() |
public DefaultPortInfo(Map<String,Integer> services, String hostname)
Creates a new 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 NetworkAddress hostname()
Copyright © 2018 Couchbase, Inc.. All rights reserved.