@InterfaceStability.Experimental @InterfaceAudience.Private public class Bootstrap extends Object
Utility classes for bootstrapping.
Modifier and Type | Method and Description |
---|---|
static List<String> |
fromDnsSrv(String serviceName,
boolean full,
boolean secure)
Fetch a bootstrap list from DNS SRV using default OS name resolution.
|
static List<String> |
fromDnsSrv(String serviceName,
boolean full,
boolean secure,
String nameServerIP)
Fetch a bootstrap list from DNS SRV using a specific nameserver IP.
|
static void |
setDnsEnvParameter(String key,
String value) |
public static List<String> fromDnsSrv(String serviceName, boolean full, boolean secure) throws NamingException
Fetch a bootstrap list from DNS SRV using default OS name resolution.
serviceName
- the DNS SRV locator.full
- if the service name is the full one or needs to be enriched by the couchbase prefixes.secure
- if the secure service prefix should be used.NamingException
- if something goes wrong during the load process.public static List<String> fromDnsSrv(String serviceName, boolean full, boolean secure, String nameServerIP) throws NamingException
Fetch a bootstrap list from DNS SRV using a specific nameserver IP.
serviceName
- the DNS SRV locator.full
- if the service name is the full one or needs to be enriched by the couchbase prefixes.secure
- if the secure service prefix should be used.nameServerIP
- an IPv4 for the name server to use for SRV resolution.NamingException
- if something goes wrong during the load process.Copyright © 2015 Couchbase, Inc.