public class PortInfo extends Object
Constructor and Description |
---|
PortInfo(Map<String,Integer> services,
String hostname,
Map<String,AlternateAddress> aa)
Creates a new
PortInfo . |
Modifier and Type | Method and Description |
---|---|
Map<String,AlternateAddress> |
alternateAddresses() |
boolean |
equals(Object o) |
int |
hashCode() |
String |
hostname() |
NodeIdentifier |
identifier() |
Map<ServiceType,Integer> |
ports() |
Map<ServiceType,Integer> |
sslPorts() |
String |
toString() |
public PortInfo(Map<String,Integer> services, String hostname, Map<String,AlternateAddress> aa)
PortInfo
.
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 NodeIdentifier identifier()
public Map<ServiceType,Integer> ports()
public Map<ServiceType,Integer> sslPorts()
public String hostname()
public Map<String,AlternateAddress> alternateAddresses()
Copyright © 2021 Couchbase, Inc.. All rights reserved.