public class ReplicationDnsSrvConnectionUrl extends ConnectionUrl
ConnectionUrl.HostsCardinality, ConnectionUrl.Typehosts, originalConnStr, originalDatabase, properties, type| Constructor and Description |
|---|
ReplicationDnsSrvConnectionUrl(ConnectionUrlParser connStrParser,
java.util.Properties info)
Constructs an instance of
ReplicationDnsSrvConnectionUrl, performing all the required initializations. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
acceptsUrl, buildHostInfo, collectHostsInfo, collectProperties, expandPropertiesFromConfigFiles, fixHostInfo, fixProtocolDependencies, getConnectionArgumentsAsProperties, getConnectionUrlInstance, getDatabase, getDatabaseUrl, getDefaultPassword, getDefaultUser, getHostOrSpawnIsolated, getHostOrSpawnIsolated, getHostsList, getHostsListFromDnsSrv, getMainHost, getOriginalProperties, getPropertiesFromConfigFiles, getType, hostsCount, injectPerTypeProperties, preprocessPerTypeHostProperties, replaceLegacyPropertyValues, setupPropertiesTransformer, toStringpublic ReplicationDnsSrvConnectionUrl(ConnectionUrlParser connStrParser, java.util.Properties info)
ReplicationDnsSrvConnectionUrl, performing all the required initializations.connStrParser - a ConnectionUrlParser instance containing the parsed version of the original connection stringinfo - the connection arguments mappublic java.lang.String getDefaultHost()
ConnectionUrlgetDefaultHost in class ConnectionUrlpublic int getDefaultPort()
ConnectionUrlgetDefaultPort in class ConnectionUrlpublic java.util.List<HostInfo> getHostsList(HostsListView view)
getHostsList in class ConnectionUrlview - the type of the view to use in the returned list of hosts.