| Package | Description |
|---|---|
| com.mysql.cj.conf | |
| com.mysql.cj.conf.url | |
| com.mysql.cj.jdbc.ha | |
| com.mysql.cj.xdevapi |
Java classes for X DevAPI support.
|
| testsuite |
| Modifier and Type | Field and Description |
|---|---|
private static LRUCache<java.lang.String,ConnectionUrl> |
ConnectionUrl.connectionUrlCache |
| Modifier and Type | Method and Description |
|---|---|
static ConnectionUrl |
ConnectionUrl.Type.getConnectionUrlInstance(ConnectionUrlParser parser,
java.util.Properties info)
Instantiates a class that implements the right type of connection URLs for the given
ConnectionUrlParser. |
static ConnectionUrl |
ConnectionUrl.getConnectionUrlInstance(java.lang.String connString,
java.util.Properties info)
Static factory method that returns either a new instance of a
ConnectionUrl or a cached one. |
private ConnectionUrl |
ConnectionUrl.Type.getImplementingInstance(ConnectionUrlParser parser,
java.util.Properties info)
Instantiates a class that implements this type of connection URLs with the given arguments.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FailoverConnectionUrl |
class |
FailoverDnsSrvConnectionUrl |
class |
LoadBalanceConnectionUrl |
class |
LoadBalanceDnsSrvConnectionUrl |
class |
ReplicationConnectionUrl |
class |
ReplicationDnsSrvConnectionUrl |
class |
SingleConnectionUrl |
class |
XDevApiConnectionUrl |
class |
XDevApiDnsSrvConnectionUrl |
| Modifier and Type | Field and Description |
|---|---|
protected ConnectionUrl |
MultiHostConnectionProxy.connectionUrl |
| Modifier and Type | Method and Description |
|---|---|
static JdbcConnection |
FailoverConnectionProxy.createProxyInstance(ConnectionUrl connectionUrl) |
static LoadBalancedConnection |
LoadBalancedConnectionProxy.createProxyInstance(ConnectionUrl connectionUrl)
Static factory to create
LoadBalancedConnection instances. |
static ReplicationConnection |
ReplicationConnectionProxy.createProxyInstance(ConnectionUrl connectionUrl)
Static factory to create
ReplicationConnection instances. |
(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 |
|---|
FailoverConnectionProxy(ConnectionUrl connectionUrl)
Instantiates a new FailoverConnectionProxy for the given list of hosts and connection properties.
|
LoadBalancedConnectionProxy(ConnectionUrl connectionUrl)
Creates a proxy for java.sql.Connection that routes requests between the hosts in the connection URL.
|
MultiHostConnectionProxy(ConnectionUrl connectionUrl)
Constructs a MultiHostConnectionProxy instance for the given connection URL.
|
ReplicationConnectionProxy(ConnectionUrl connectionUrl)
Creates a proxy for java.sql.Connection that routes requests to a load-balanced connection of source servers or a load-balanced connection of replica
servers.
|
| Modifier and Type | Field and Description |
|---|---|
private ConnectionUrl |
ClientImpl.connUrl |
| Modifier and Type | Method and Description |
|---|---|
protected ConnectionUrl |
SessionFactory.parseUrl(java.lang.String url)
Parses the connection string URL.
|
| Modifier and Type | Method and Description |
|---|---|
protected Session |
SessionFactory.getSession(ConnectionUrl connUrl)
Creates
Session by given URL. |
| Modifier and Type | Field and Description |
|---|---|
protected static ConnectionUrl |
BaseTestCase.mainConnectionUrl |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Properties |
BaseTestCase.getPropertiesFromUrl(ConnectionUrl url) |