Constructor and Description |
---|
DefaultNodeInfo(String hostname,
Map<ServiceType,Integer> direct,
Map<ServiceType,Integer> ssl,
Map<String,AlternateAddress> alternateAddresses)
Creates a new
DefaultNodeInfo with SSL services. |
DefaultNodeInfo(String viewUri,
String hostname,
Map<String,Integer> ports,
Map<String,AlternateAddress> alternateAddresses)
Creates a new
DefaultNodeInfo with no SSL services. |
Modifier and Type | Method and 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 |
toString() |
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.
|
public DefaultNodeInfo(String viewUri, String hostname, Map<String,Integer> ports, Map<String,AlternateAddress> alternateAddresses)
DefaultNodeInfo
with no SSL services.viewUri
- the URI of the view service.hostname
- the hostname of the node.ports
- the port list of the node services.public DefaultNodeInfo(String hostname, Map<ServiceType,Integer> direct, Map<ServiceType,Integer> ssl, Map<String,AlternateAddress> alternateAddresses)
DefaultNodeInfo
with SSL services.hostname
- the hostname of the node.direct
- the port list of the direct node services.ssl
- the port list of the ssl node services.public String hostname()
NodeInfo
public Map<ServiceType,Integer> services()
NodeInfo
public Map<ServiceType,Integer> sslServices()
NodeInfo
sslServices
in interface NodeInfo
public Map<String,AlternateAddress> alternateAddresses()
NodeInfo
alternateAddresses
in interface NodeInfo
public String useAlternateNetwork()
NodeInfo
useAlternateNetwork
in interface NodeInfo
public void useAlternateNetwork(String useAlternateNetwork)
NodeInfo
useAlternateNetwork
in interface NodeInfo
useAlternateNetwork
- if not null will be used.Copyright © 2019 Couchbase, Inc.. All rights reserved.