@Stability.Internal public class ConnectionStringUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
INCOMPATIBLE_CONNECTION_STRING_PARAMS |
static String |
INCOMPATIBLE_CONNECTION_STRING_SCHEME |
Modifier and Type | Method and Description |
---|---|
static ConnectionString |
asConnectionString(Collection<SeedNode> nodes)
Returns a synthetic connection string corresponding to the seed nodes.
|
static void |
checkConnectionString(CoreEnvironment env,
boolean ownsEnvironment,
ConnectionString connStr) |
static List<String> |
fromDnsSrvOrThrowIfTlsRequired(String serviceName,
boolean secure) |
static boolean |
isCapella(ConnectionString connectionString)
Returns true if the addresses indicate this is a Couchbase Capella cluster.
|
static Set<SeedNode> |
seedNodesFromConnectionString(ConnectionString connectionString,
boolean dnsSrvEnabled,
boolean tlsEnabled,
EventBus eventBus)
Populates a list of seed nodes from the connection string.
|
public static final String INCOMPATIBLE_CONNECTION_STRING_SCHEME
public static final String INCOMPATIBLE_CONNECTION_STRING_PARAMS
public static Set<SeedNode> seedNodesFromConnectionString(ConnectionString connectionString, boolean dnsSrvEnabled, boolean tlsEnabled, EventBus eventBus)
Note that this method also performs DNS SRV lookups if the connection string qualifies!
connectionString
- the connection string in its encoded form.dnsSrvEnabled
- true if dns srv is enabled.tlsEnabled
- true if tls is enabled.public static boolean isCapella(ConnectionString connectionString)
public static ConnectionString asConnectionString(Collection<SeedNode> nodes)
public static void checkConnectionString(CoreEnvironment env, boolean ownsEnvironment, ConnectionString connStr)
@Stability.Internal public static List<String> fromDnsSrvOrThrowIfTlsRequired(String serviceName, boolean secure) throws NamingException
NamingException
Copyright © 2024 Couchbase, Inc.. All rights reserved.