| 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()
NodeInfopublic Map<ServiceType,Integer> services()
NodeInfopublic Map<ServiceType,Integer> sslServices()
NodeInfosslServices in interface NodeInfopublic Map<String,AlternateAddress> alternateAddresses()
NodeInfoalternateAddresses in interface NodeInfopublic String useAlternateNetwork()
NodeInfouseAlternateNetwork in interface NodeInfopublic void useAlternateNetwork(String useAlternateNetwork)
NodeInfouseAlternateNetwork in interface NodeInfouseAlternateNetwork - if not null will be used.Copyright © 2021 Couchbase, Inc.. All rights reserved.