Constructor and Description |
---|
DefaultNodeInfo(InetAddress hostname,
Map<ServiceType,Integer> direct,
Map<ServiceType,Integer> ssl)
Creates a new
DefaultNodeInfo with SSL services. |
DefaultNodeInfo(String viewUri,
String hostname,
Map<String,Integer> ports)
Creates a new
DefaultNodeInfo with no SSL services. |
Modifier and Type | Method and Description |
---|---|
InetAddress |
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() |
public DefaultNodeInfo(String viewUri, String hostname, Map<String,Integer> ports)
Creates a new 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(InetAddress hostname, Map<ServiceType,Integer> direct, Map<ServiceType,Integer> ssl)
Creates a new 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 InetAddress hostname()
NodeInfo
The inet address of the node.
public Map<ServiceType,Integer> services()
NodeInfo
The exposed non-ssl services.
public Map<ServiceType,Integer> sslServices()
NodeInfo
The exposed ssl services.
sslServices
in interface NodeInfo
Copyright © 2016 Couchbase, Inc.. All rights reserved.