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
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()
-
Constructor Details
-
DefaultAlternateAddress
-
-
Method Details
-
hostname
Description copied from interface:AlternateAddress
The "raw" hostname address of the node.- Specified by:
hostname
in interfaceAlternateAddress
- Returns:
- the host address.
-
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
Description copied from interface:AlternateAddress
The exposed ssl services.- Specified by:
sslServices
in interfaceAlternateAddress
- Returns:
- a map containing all services with secured ports.
-
toString
-
equals
-
hashCode
public int hashCode()
-