public class DefaultAlternateAddress extends Object implements AlternateAddress
Constructor and Description |
---|
DefaultAlternateAddress(String hostname,
Map<String,Integer> ports) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
NetworkAddress |
hostname()
The inet address of the node.
|
String |
rawHostname()
Contains the string representation from the hostname the same way it is represented in the config.
|
Map<ServiceType,Integer> |
services()
The exposed non-ssl services.
|
Map<ServiceType,Integer> |
sslServices()
The exposed ssl services.
|
String |
toString() |
public NetworkAddress hostname()
AlternateAddress
The inet address of the node.
hostname
in interface AlternateAddress
public String rawHostname()
AlternateAddress
Contains the string representation from the hostname the same way it is represented in the config.
rawHostname
in interface AlternateAddress
public Map<ServiceType,Integer> services()
AlternateAddress
The exposed non-ssl services.
services
in interface AlternateAddress
public Map<ServiceType,Integer> sslServices()
AlternateAddress
The exposed ssl services.
sslServices
in interface AlternateAddress
Copyright © 2018 Couchbase, Inc.. All rights reserved.