public class XDevApiDnsSrvConnectionUrl extends ConnectionUrl
ConnectionUrl.HostsCardinality, ConnectionUrl.Typehosts, originalConnStr, originalDatabase, properties, type| Constructor and Description |
|---|
XDevApiDnsSrvConnectionUrl(ConnectionUrlParser connStrParser,
java.util.Properties info)
Constructs an instance of
XDevApiDnsSrvConnectionUrl, performing all the required initializations. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fixProtocolDependencies(java.util.Map<java.lang.String,java.lang.String> hostProps)
Fixes the protocol (TCP vs PIPE) dependencies for the given host properties map.
|
java.lang.String |
getDefaultHost()
Returns the default host.
|
int |
getDefaultPort()
Returns the default port.
|
java.util.List<HostInfo> |
getHostsList(HostsListView view)
Returns a hosts list built from the result of the DNS SRV lookup for the original host name.
|
protected void |
preprocessPerTypeHostProperties(java.util.Map<java.lang.String,java.lang.String> hostProps)
Subclasses should override this to perform any required pre-processing on the host information properties.
|
acceptsUrl, buildHostInfo, collectHostsInfo, collectProperties, expandPropertiesFromConfigFiles, fixHostInfo, getConnectionArgumentsAsProperties, getConnectionUrlInstance, getDatabase, getDatabaseUrl, getDefaultPassword, getDefaultUser, getHostOrSpawnIsolated, getHostOrSpawnIsolated, getHostsList, getHostsListFromDnsSrv, getMainHost, getOriginalProperties, getPropertiesFromConfigFiles, getType, hostsCount, injectPerTypeProperties, replaceLegacyPropertyValues, setupPropertiesTransformer, toStringpublic XDevApiDnsSrvConnectionUrl(ConnectionUrlParser connStrParser, java.util.Properties info)
XDevApiDnsSrvConnectionUrl, performing all the required initializations.connStrParser - a ConnectionUrlParser instance containing the parsed version of the original connection stringinfo - the connection arguments mapprotected void preprocessPerTypeHostProperties(java.util.Map<java.lang.String,java.lang.String> hostProps)
ConnectionUrlpreprocessPerTypeHostProperties in class ConnectionUrlhostProps - the host properties map to processpublic java.lang.String getDefaultHost()
ConnectionUrlgetDefaultHost in class ConnectionUrlpublic int getDefaultPort()
ConnectionUrlgetDefaultPort in class ConnectionUrlprotected void fixProtocolDependencies(java.util.Map<java.lang.String,java.lang.String> hostProps)
ConnectionUrlfixProtocolDependencies in class ConnectionUrlhostProps - the host properties map to fixpublic java.util.List<HostInfo> getHostsList(HostsListView view)
getHostsList in class ConnectionUrlview - the type of the view to use in the returned list of hosts. This argument is ignored in this implementation.