Package com.couchbase.client.core.config
Interface NodeInfo
- All Known Implementing Classes:
DefaultNodeInfo
public interface NodeInfo
-
Method Summary
Modifier and Type Method Description Map<String,AlternateAddress>
alternateAddresses()
Contains alternate addresses, if set.String
hostname()
The inet address of the node.Map<ServiceType,Integer>
services()
The exposed non-ssl services.Map<ServiceType,Integer>
sslServices()
The exposed ssl services.String
useAlternateNetwork()
True if alternate addresses should be used, false otherwise.void
useAlternateNetwork(String useAlternateNetwork)
Setter to set if external networking should be used or not.
-
Method Details
-
hostname
String hostname()The inet address of the node.- Returns:
- the host address.
-
services
Map<ServiceType,Integer> services()The exposed non-ssl services.- Returns:
- a map containing all services with ports.
-
sslServices
Map<ServiceType,Integer> sslServices()The exposed ssl services.- Returns:
- a map containing all services with secured ports.
-
alternateAddresses
Map<String,AlternateAddress> alternateAddresses()Contains alternate addresses, if set.- Returns:
- a map containing alternate addresses.
-
useAlternateNetwork
String useAlternateNetwork()True if alternate addresses should be used, false otherwise. -
useAlternateNetwork
Setter to set if external networking should be used or not.- Parameters:
useAlternateNetwork
- if not null will be used.
-