| Package | Description |
|---|---|
| com.mysql.cj | |
| com.mysql.cj.conf | |
| com.mysql.cj.conf.url | |
| com.mysql.cj.jdbc | |
| com.mysql.cj.jdbc.ha | |
| com.mysql.cj.protocol.x | |
| com.mysql.cj.xdevapi |
Java classes for X DevAPI support.
|
| testsuite | |
| testsuite.x.internal |
Tests for internal components of the X Protocol and X DevAPI features.
|
| Modifier and Type | Field and Description |
|---|---|
protected HostInfo |
CoreSession.hostInfo |
| Modifier and Type | Method and Description |
|---|---|
HostInfo |
Session.getHostInfo() |
HostInfo |
CoreSession.getHostInfo() |
| Modifier and Type | Method and Description |
|---|---|
void |
NativeSession.connect(HostInfo hi,
java.lang.String user,
java.lang.String password,
java.lang.String database,
int loginTimeout,
TransactionEventHandler transactionManager) |
| Constructor and Description |
|---|
CoreSession(HostInfo hostInfo,
PropertySet propSet) |
MysqlxSession(HostInfo hostInfo,
PropertySet propSet) |
NativeSession(HostInfo hostInfo,
PropertySet propSet) |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<HostInfo> |
ConnectionUrl.hosts |
private java.util.List<HostInfo> |
ConnectionUrlParser.parsedHosts |
| Modifier and Type | Method and Description |
|---|---|
protected HostInfo |
ConnectionUrl.buildHostInfo(java.lang.String host,
int port,
java.lang.String user,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.String> hostProps)
Creates a new
HostInfo structure with the given components, passing through the properties transformer if there is one defined in this connection
string; |
private HostInfo |
ConnectionUrlParser.buildHostInfoForEmptyHost(java.lang.String user,
java.lang.String password,
java.lang.String hostInfo)
Builds an
HostInfo instance for empty host authority segments. |
private HostInfo |
ConnectionUrlParser.buildHostInfoResortingToAddressEqualsSyntaxParser(java.lang.String user,
java.lang.String password,
java.lang.String hostInfo)
Parses the host information using the alternate syntax "address=(key1=value1)(key2=value2)...".
|
private HostInfo |
ConnectionUrlParser.buildHostInfoResortingToGenericSyntaxParser(java.lang.String user,
java.lang.String password,
java.lang.String hostInfo)
Parses the host information using the generic syntax "host:port".
|
private HostInfo |
ConnectionUrlParser.buildHostInfoResortingToKeyValueSyntaxParser(java.lang.String user,
java.lang.String password,
java.lang.String hostInfo)
Parses the host information using the alternate syntax "(key1=value1, key2=value2, ...)".
|
private HostInfo |
ConnectionUrlParser.buildHostInfoResortingToUriParser(java.lang.String user,
java.lang.String password,
java.lang.String hostInfo)
Parses the host information resorting to a URI object.
|
protected HostInfo |
ConnectionUrl.fixHostInfo(HostInfo hi)
Fixes the host information by moving data around and filling in missing data.
|
HostInfo |
ConnectionUrl.getHostOrSpawnIsolated(java.lang.String hostPortPair)
Returns an existing host info with the same host:port part or spawns a new isolated host info based on this connection URL if none was found.
|
HostInfo |
ConnectionUrl.getHostOrSpawnIsolated(java.lang.String hostPortPair,
java.util.List<HostInfo> hostsList)
Returns an existing host info with the same host:port part or spawns a new isolated host info based on this connection URL if none was found.
|
HostInfo |
ConnectionUrl.getMainHost()
Returns the single or first host info structure.
|
| Modifier and Type | Method and Description |
|---|---|
private java.util.List<HostInfo> |
ConnectionUrlParser.buildHostInfoResortingToSubHostsListParser(java.lang.String user,
java.lang.String password,
java.lang.String hostInfo)
Parses the host information using the alternate sub hosts lists syntax "[host1, host2, ...]".
|
java.util.List<HostInfo> |
ConnectionUrlParser.getHosts()
Returns the hosts information.
|
java.util.List<HostInfo> |
ConnectionUrl.getHostsList()
Returns a list of the hosts in this connection URL.
|
java.util.List<HostInfo> |
ConnectionUrl.getHostsList(HostsListView view)
Returns a list of the hosts in this connection URL, filtered for the given view.
|
java.util.List<HostInfo> |
ConnectionUrl.getHostsListFromDnsSrv(HostInfo srvHost)
Returns a hosts list built from the result of the DNS SRV lookup for the original host name.
|
private java.util.List<HostInfo> |
ConnectionUrl.srvRecordsToHostsList(java.util.List<DnsSrv.SrvRecord> srvRecords,
HostInfo baseHostInfo)
Converts a list of DNS SRV records into a hosts list.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
HostInfo.equalHostPortPair(HostInfo hi)
|
protected HostInfo |
ConnectionUrl.fixHostInfo(HostInfo hi)
Fixes the host information by moving data around and filling in missing data.
|
java.util.List<HostInfo> |
ConnectionUrl.getHostsListFromDnsSrv(HostInfo srvHost)
Returns a hosts list built from the result of the DNS SRV lookup for the original host name.
|
private java.util.List<HostInfo> |
ConnectionUrl.srvRecordsToHostsList(java.util.List<DnsSrv.SrvRecord> srvRecords,
HostInfo baseHostInfo)
Converts a list of DNS SRV records into a hosts list.
|
| Modifier and Type | Method and Description |
|---|---|
HostInfo |
ConnectionUrl.getHostOrSpawnIsolated(java.lang.String hostPortPair,
java.util.List<HostInfo> hostsList)
Returns an existing host info with the same host:port part or spawns a new isolated host info based on this connection URL if none was found.
|
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<HostInfo> |
ReplicationDnsSrvConnectionUrl.replicaHosts |
private java.util.List<HostInfo> |
ReplicationConnectionUrl.replicaHosts |
private java.util.List<HostInfo> |
ReplicationDnsSrvConnectionUrl.sourceHosts |
private java.util.List<HostInfo> |
ReplicationConnectionUrl.sourceHosts |
| Modifier and Type | Method and Description |
|---|---|
HostInfo |
ReplicationConnectionUrl.getReplicaHostOrSpawnIsolated(java.lang.String hostPortPair)
Returns an existing replica host info with the same host:port part or spawns a new isolated host info based on this connection URL if none was found.
|
HostInfo |
ReplicationConnectionUrl.getSourceHostOrSpawnIsolated(java.lang.String hostPortPair)
Returns an existing source host info with the same host:port part or spawns a new isolated host info based on this connection URL if none was found.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<HostInfo> |
LoadBalanceConnectionUrl.getHostInfoListFromHostPortPairs(java.util.Collection<java.lang.String> hostPortPairs)
Returns the list of
HostInfo instances that matches the given collection of host:port pairs. |
java.util.List<HostInfo> |
XDevApiDnsSrvConnectionUrl.getHostsList(HostsListView view)
Returns a hosts list built from the result of the DNS SRV lookup for the original host name.
|
java.util.List<HostInfo> |
ReplicationDnsSrvConnectionUrl.getHostsList(HostsListView view)
Returns a hosts list built from the result of the DNS SRV lookup for the original host name.
|
java.util.List<HostInfo> |
XDevApiConnectionUrl.getHostsList(HostsListView view) |
java.util.List<HostInfo> |
ReplicationConnectionUrl.getHostsList(HostsListView view)
Returns a list of the hosts in this connection URL, filtered for the given view.
|
java.util.List<HostInfo> |
LoadBalanceDnsSrvConnectionUrl.getHostsList(HostsListView view)
Returns a hosts list built from the result of the DNS SRV lookup for the original host name.
|
java.util.List<HostInfo> |
FailoverDnsSrvConnectionUrl.getHostsList(HostsListView view)
Returns a hosts list built from the result of the DNS SRV lookup for the original host name.
|
java.util.List<HostInfo> |
ReplicationConnectionUrl.getReplicaHostsListFromHostPortPairs(java.util.Collection<java.lang.String> hostPortPairs)
Returns the list of
HostInfo instances that matches the given collection of host:port pairs in the corresponding hosts list. |
java.util.List<HostInfo> |
ReplicationConnectionUrl.getSourceHostsListFromHostPortPairs(java.util.Collection<java.lang.String> hostPortPairs)
Returns the list of
HostInfo instances that matches the given collection of host:port pairs in the corresponding hosts list. |
| Constructor and Description |
|---|
LoadBalanceConnectionUrl(java.util.List<HostInfo> hosts,
java.util.Map<java.lang.String,java.lang.String> properties)
Constructs an instance of a
LoadBalanceConnectionUrl based on a list of hosts and a global set of properties instead of connection string
parsing. |
ReplicationConnectionUrl(java.util.List<HostInfo> sources,
java.util.List<HostInfo> replicas,
java.util.Map<java.lang.String,java.lang.String> properties)
Constructs an instance of a
ReplicationConnectionUrl based on a list of source hosts, a list of replica hosts and a global set of properties
instead of connection string parsing. |
ReplicationConnectionUrl(java.util.List<HostInfo> sources,
java.util.List<HostInfo> replicas,
java.util.Map<java.lang.String,java.lang.String> properties)
Constructs an instance of a
ReplicationConnectionUrl based on a list of source hosts, a list of replica hosts and a global set of properties
instead of connection string parsing. |
| Modifier and Type | Field and Description |
|---|---|
private HostInfo |
ConnectionImpl.origHostInfo |
| Modifier and Type | Method and Description |
|---|---|
static JdbcConnection |
ConnectionImpl.getInstance(HostInfo hostInfo)
Creates a connection instance.
|
| Constructor and Description |
|---|
ConnectionImpl(HostInfo hostInfo)
Creates a connection to a MySQL Server.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.List<HostInfo> |
MultiHostConnectionProxy.hostsList |
private java.util.List<HostInfo> |
ReplicationConnectionProxy.replicaHosts |
private java.util.List<HostInfo> |
ReplicationConnectionProxy.sourceHosts |
| Modifier and Type | Method and Description |
|---|---|
private HostInfo |
ReplicationConnectionProxy.getReplicaHost(java.lang.String hostPortPair) |
private HostInfo |
ReplicationConnectionProxy.getSourceHost(java.lang.String hostPortPair) |
| Modifier and Type | Method and Description |
|---|---|
ConnectionImpl |
LoadBalancedConnectionProxy.createConnectionForHost(HostInfo hostInfo)
Creates a new physical connection for the given
HostInfo and updates required internal mappings and statistics for that connection. |
(package private) ConnectionImpl |
MultiHostConnectionProxy.createConnectionForHost(HostInfo hostInfo)
Creates a new physical connection for the given
HostInfo. |
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
MultiHostConnectionProxy.initializeHostsSpecs(ConnectionUrl connUrl,
java.util.List<HostInfo> hosts)
Initializes the hosts lists and makes a "clean" local copy of the given connection properties so that it can be later used to create standard
connections.
|
| Constructor and Description |
|---|
XProtocol(HostInfo hostInfo,
PropertySet propertySet) |
| Modifier and Type | Field and Description |
|---|---|
(package private) HostInfo |
ClientImpl.PooledXProtocol.hostInfo |
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.Map<HostInfo,java.lang.Long> |
ClientImpl.demotedHosts |
| Modifier and Type | Method and Description |
|---|---|
HostInfo |
ClientImpl.PooledXProtocol.getHostInfo() |
| Modifier and Type | Method and Description |
|---|---|
private ClientImpl.PooledXProtocol |
ClientImpl.newPooledXProtocol(HostInfo hi) |
| Modifier and Type | Method and Description |
|---|---|
(package private) boolean |
ClientImpl.PooledXProtocol.isHostInfoValid(java.util.List<HostInfo> hostsList) |
| Constructor and Description |
|---|
PooledXProtocol(HostInfo hostInfo,
PropertySet propertySet) |
SessionImpl(HostInfo hostInfo)
Constructor.
|
| Modifier and Type | Field and Description |
|---|---|
private HostInfo |
InjectedSocketFactory.hi |
(package private) HostInfo |
InjectedSocketFactory.SocketWrapper.hi |
(package private) HostInfo |
InjectedSocketFactory.InjectedInputStream.hi |
| Constructor and Description |
|---|
InjectedInputStream(java.io.InputStream realInputStream,
PropertySet pset,
HostInfo hi) |
SocketWrapper(java.net.Socket realSocket,
PropertySet pset,
HostInfo hi) |
| Modifier and Type | Field and Description |
|---|---|
HostInfo |
InternalXBaseTestCase.testHostInfo |