| Constructor and Description |
|---|
DefaultPortInfo(Map<String,Integer> services,
String hostname)
Creates a new
DefaultPortInfo. |
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
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 InetAddress hostname()
Copyright © 2016 Couchbase, Inc.. All rights reserved.