Package com.couchbase.client.core.config
Class DefaultAlternateAddress
- java.lang.Object
-
- com.couchbase.client.core.config.DefaultAlternateAddress
-
- All Implemented Interfaces:
AlternateAddress
public class DefaultAlternateAddress extends Object implements AlternateAddress
-
-
Constructor Summary
Constructors Constructor Description DefaultAlternateAddress(String hostname, Map<String,Integer> ports)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
String
hostname()
The "raw" hostname address of the node.Map<ServiceType,Integer>
services()
The exposed non-ssl services.Map<ServiceType,Integer>
sslServices()
The exposed ssl services.String
toString()
-
-
-
Method Detail
-
hostname
public String hostname()
Description copied from interface:AlternateAddress
The "raw" hostname address of the node.- Specified by:
hostname
in interfaceAlternateAddress
- Returns:
- the host address.
-
services
public Map<ServiceType,Integer> services()
Description copied from interface:AlternateAddress
The exposed non-ssl services.- Specified by:
services
in interfaceAlternateAddress
- Returns:
- a map containing all services with ports.
-
sslServices
public Map<ServiceType,Integer> sslServices()
Description copied from interface:AlternateAddress
The exposed ssl services.- Specified by:
sslServices
in interfaceAlternateAddress
- Returns:
- a map containing all services with secured ports.
-
-