| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | abort(Executor
The executor)Executor implementation which will
be used by abort.Overrides com. Implements java. Terminates an open connection. |
| public void | abortInternal()
Overrides com. Implements com. Clobbers the physical network connection and marks this connection as closed. |
| public void | |
| public void | changeUser(String
the username to authenticate with userName, String the password to authenticate with newPassword)Overrides com. Implements com. Changes the user on this connection by performing a re-authentication. |
| public JdbcConnection | |
| public long | |
| public JdbcConnection | |
| public Properties | getProperties()
Overrides com. Implements com. Returns the parsed and passed in properties for this connection. |
| public JdbcConnection | |
| public JdbcConnection | |
| public ReplicationConnectionProxy | |
| private JdbcConnection | |
| private JdbcConnection | |
| public boolean | hasSameProperties(JdbcConnection
connection c)Overrides com. Implements com. Does this connection have the same properties as another? |
| public boolean | |
| public boolean | |
| public boolean | isReadOnly()
Overrides com. Implements java. Retrieves whether this |
| public boolean | isWrapperFor(Class<?>
a Class defining an interface. iface)Overrides com. Implements java. Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does. |
| public void | ping()
Overrides com. Implements com. Detect if the connection is still good by sending a ping command to the server. |
| public void | |
| public void | |
| public void | removeReplica(String host, boolean closeGently)
Implements com.
|
| public void | |
| public void | removeSourceHost(String host, boolean waitUntilNotInUse)
Implements com.
|
| public void | setProxy(JdbcConnection proxy)
Overrides com. Implements com.
|
| public void | setReadOnly(boolean
true enables read-only mode;
false disables itOverrides com. Implements java. Puts this connection in read-only mode as a hint to the driver to enable database optimizations. |
| public void | setStatementComment(String
the comment that will be prepended to all statements sent to the server. comment)Overrides com. Implements com. Sets the comment that will be prepended to all statements sent to the server. |
| public <T> T | unwrap(Class<T>
A Class defining an interface that the result must implement. iface)Overrides com. Implements java. Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy. |
| ReplicationMySQLConnection | back to summary |
|---|---|
| public ReplicationMySQLConnection(MultiHostConnectionProxy proxy) | |
| abort | back to summary |
|---|---|
| public void abort(Executor executor) throws SQLException Overrides com. Implements java. Doc from java. Terminates an open connection. Calling
Calling
It is possible that the aborting and releasing of the resources that are
held by the connection can take an extended period of time. When the
| |
| abortInternal | back to summary |
|---|---|
| public void abortInternal() throws SQLException Overrides com. Implements com. Doc from com. Clobbers the physical network connection and marks this connection as closed.
| |
| addReplicaHost | back to summary |
|---|---|
| public void addReplicaHost(String host) throws SQLException Implements com.
| |
| changeUser | back to summary |
|---|---|
| public void changeUser(String userName, String newPassword) throws SQLException Overrides com. Implements com. Doc from com. Changes the user on this connection by performing a re-authentication. If authentication fails, the connection is failed.
| |
| getActiveMySQLConnection | back to summary |
|---|---|
| public JdbcConnection getActiveMySQLConnection() Overrides com. Implements com.
| |
| getConnectionGroupId | back to summary |
|---|---|
| public long getConnectionGroupId() Implements com.
| |
| getCurrentConnection | back to summary |
|---|---|
| public JdbcConnection getCurrentConnection() Implements com.
| |
| getProperties | back to summary |
|---|---|
| public Properties getProperties() Overrides com. Implements com. Doc from com. Returns the parsed and passed in properties for this connection.
| |
| getReplicaConnection | back to summary |
|---|---|
| public JdbcConnection getReplicaConnection() Implements com.
| |
| getSourceConnection | back to summary |
|---|---|
| public JdbcConnection getSourceConnection() Implements com.
| |
| getThisAsProxy | back to summary |
|---|---|
| public ReplicationConnectionProxy getThisAsProxy() Overrides com.
| |
| getValidatedReplicasConnection | back to summary |
|---|---|
| private JdbcConnection getValidatedReplicasConnection() | |
| getValidatedSourceConnection | back to summary |
|---|---|
| private JdbcConnection getValidatedSourceConnection() | |
| hasSameProperties | back to summary |
|---|---|
| public boolean hasSameProperties(JdbcConnection c) Overrides com. Implements com. Doc from com. Does this connection have the same properties as another?
| |
| isHostReplica | back to summary |
|---|---|
| public boolean isHostReplica(String host) Implements com.
| |
| isHostSource | back to summary |
|---|---|
| public boolean isHostSource(String host) Implements com.
| |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly() throws SQLException Overrides com. Implements java. Doc from java. Retrieves whether this
| |
| isWrapperFor | back to summary |
|---|---|
| public boolean isWrapperFor(Class<?> iface) throws SQLException Overrides com. Implements java. Doc from java. Returns true if this either implements the interface argument or is directly or indirectly a wrapper
for an object that does. Returns false otherwise. If this implements the interface then return true,
else if this is a wrapper then return the result of recursively calling
| |
| ping | back to summary |
|---|---|
| public void ping() throws SQLException Overrides com. Implements com. Doc from com. Detect if the connection is still good by sending a ping command to the server.
| |
| promoteReplicaToSource | back to summary |
|---|---|
| public void promoteReplicaToSource(String host) throws SQLException Implements com.
| |
| removeReplica | back to summary |
|---|---|
| public void removeReplica(String host) throws SQLException Implements com.
| |
| removeReplica | back to summary |
|---|---|
| public void removeReplica(String host, boolean closeGently) throws SQLException Implements com.
| |
| removeSourceHost | back to summary |
|---|---|
| public void removeSourceHost(String host) throws SQLException Implements com.
| |
| removeSourceHost | back to summary |
|---|---|
| public void removeSourceHost(String host, boolean waitUntilNotInUse) throws SQLException Implements com.
| |
| setProxy | back to summary |
|---|---|
| public void setProxy(JdbcConnection proxy) Overrides com. Implements com.
| |
| setReadOnly | back to summary |
|---|---|
| public void setReadOnly(boolean readOnlyFlag) throws SQLException Overrides com. Implements java. Doc from java. Puts this connection in read-only mode as a hint to the driver to enable database optimizations. Note This method cannot be called during a transaction.
| |
| setStatementComment | back to summary |
|---|---|
| public void setStatementComment(String comment) Overrides com. Implements com. Doc from com. Sets the comment that will be prepended to all statements sent to the server. Do not use slash-star or star-slash tokens in the comment as these will be added by the driver itself. | |
| unwrap | back to summary |
|---|---|
| public <T> T unwrap(Class<T> iface) throws SQLException Overrides com. Implements java. Doc from java. Returns an object that implements the given interface to allow access to
non-standard methods, or standard methods not exposed by the proxy.
If the receiver implements the interface then the result is the receiver
or a proxy for the receiver. If the receiver is a wrapper
and the wrapped object implements the interface then the result is the
wrapped object or a proxy for the wrapped object. Otherwise return the
the result of calling
| |