Top Fields Constructors Methods
com.mysql.cj.conf.url

public Class XDevApiConnectionUrl

extends ConnectionUrl
Class Inheritance
Static Imports
com.mysql.cj.util.StringUtils.isNullOrEmpty, .StringUtils.safeTrim

Field Summary

Modifier and TypeField and Description
private static final int
private boolean
private boolean
Inherited from com.mysql.cj.conf.ConnectionUrl:
DEFAULT_HOSThostsoriginalConnStroriginalDatabasepropertiestype

Constructor Summary

AccessConstructor and Description
public
XDevApiConnectionUrl(ConnectionUrlParser
a ConnectionUrlParser instance containing the parsed version of the original connection string
connStrParser
,
Properties
the connection arguments map
info
)

Constructs an instance of XDevApiConnectionUrl, performing all the required initializations.

Method Summary

Modifier and TypeMethod and Description
protected void
fixProtocolDependencies(Map<String, String>
the host properties map to fix
hostProps
)

Overrides com.mysql.cj.conf.ConnectionUrl.fixProtocolDependencies.

Fixes the protocol (TCP vs PIPE) dependencies for the given host properties map.

public int
getDefaultPort()

Overrides com.mysql.cj.conf.ConnectionUrl.getDefaultPort.

Returns the default port.

public List<HostInfo>
getHostsList(HostsListView
the type of the view to use in the returned list of hosts. This argument is ignored in this implementation.
view
)

Overrides com.mysql.cj.conf.ConnectionUrl.getHostsList.

Returns a list of the hosts in this connection URL, filtered for the given view.

protected void
preprocessPerTypeHostProperties(Map<String, String>
the host properties map to process
hostProps
)

Overrides com.mysql.cj.conf.ConnectionUrl.preprocessPerTypeHostProperties.

Subclasses should override this to perform any required pre-processing on the host information properties.

Inherited from com.mysql.cj.conf.ConnectionUrl:
acceptsUrlbuildHostInfocollectHostsInfocollectPropertiesexpandPropertiesFromConfigFilesfixHostInfogetConnectionArgumentsAsPropertiesgetConnectionUrlInstancegetDatabasegetDatabaseUrlgetDefaultHostgetDefaultPasswordgetDefaultUsergetHostOrSpawnIsolatedgetHostOrSpawnIsolatedgetHostsListgetHostsListFromDnsSrvgetMainHostgetOriginalPropertiesgetPropertiesFromConfigFilesgetTypehostsCountinjectPerTypePropertiesreplaceLegacyPropertyValuessetupPropertiesTransformertoString

Field Detail

DEFAULT_PORTback to summary
private static final int DEFAULT_PORT

Hides com.mysql.cj.conf.ConnectionUrl.DEFAULT_PORT.

hasDuplicatedPrioritiesback to summary
private boolean hasDuplicatedPriorities
prioritySortedback to summary
private boolean prioritySorted

Constructor Detail

XDevApiConnectionUrlback to summary
public XDevApiConnectionUrl(ConnectionUrlParser connStrParser, Properties info)

Constructs an instance of XDevApiConnectionUrl, performing all the required initializations.

Parameters
connStrParser:ConnectionUrlParser

a ConnectionUrlParser instance containing the parsed version of the original connection string

info:Properties

the connection arguments map

Method Detail

fixProtocolDependenciesback to summary
protected void fixProtocolDependencies(Map<String, String> hostProps)

Overrides com.mysql.cj.conf.ConnectionUrl.fixProtocolDependencies.

Doc from com.mysql.cj.conf.ConnectionUrl.fixProtocolDependencies.

Fixes the protocol (TCP vs PIPE) dependencies for the given host properties map.

Parameters
hostProps:Map<String, String>

the host properties map to fix

Annotations
@Override
getDefaultPortback to summary
public int getDefaultPort()

Overrides com.mysql.cj.conf.ConnectionUrl.getDefaultPort.

Doc from com.mysql.cj.conf.ConnectionUrl.getDefaultPort.

Returns the default port. Subclasses must override this method if they have different default port value.

Returns:int

the default port

Annotations
@Override
getHostsListback to summary
public List<HostInfo> getHostsList(HostsListView view)

Overrides com.mysql.cj.conf.ConnectionUrl.getHostsList.

Doc from com.mysql.cj.conf.ConnectionUrl.getHostsList.

Returns a list of the hosts in this connection URL, filtered for the given view. By default returns all hosts. Subclasses should override this method in order to implement support for different views, usually by splitting the global hosts into smaller sub-lists.

Parameters
view:HostsListView

the type of the view to use in the returned list of hosts. This argument is ignored in this implementation.

Returns:List<HostInfo>

the hosts list from this connection URL, filtered for the given view.

Annotations
@Override
preprocessPerTypeHostPropertiesback to summary
protected void preprocessPerTypeHostProperties(Map<String, String> hostProps)

Overrides com.mysql.cj.conf.ConnectionUrl.preprocessPerTypeHostProperties.

Doc from com.mysql.cj.conf.ConnectionUrl.preprocessPerTypeHostProperties.

Subclasses should override this to perform any required pre-processing on the host information properties.

Parameters
hostProps:Map<String, String>

the host properties map to process

Annotations
@Override