public abstract class MultiHostConnectionProxy
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
| Modifier and Type | Field and Description |
|---|---|
protected ConnectionUrl |
connectionUrl |
protected java.lang.Throwable |
lastExceptionDealtWith |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allowedOnClosedConnection(java.lang.reflect.Method method)
Checks if the given method is allowed on closed connections.
|
protected JdbcConnection |
getParentProxy()
Get this connection's parent proxy.
|
protected JdbcConnection |
getProxy()
Get this connection's proxy.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Proxies method invocation on the java.sql.Connection interface, trapping multi-host specific methods and generic methods.
|
protected void |
propagateProxyDown(JdbcConnection proxyConn)
Propagates the connection proxy down through the multi-host connections chain.
|
protected void |
setProxy(JdbcConnection proxyConn)
Sets this connection's proxy.
|
protected ConnectionUrl connectionUrl
protected java.lang.Throwable lastExceptionDealtWith
protected JdbcConnection getProxy()
protected JdbcConnection getParentProxy()
protected final void setProxy(JdbcConnection proxyConn)
proxyConn - The top level connection in the multi-host connections chain.protected void propagateProxyDown(JdbcConnection proxyConn)
proxyConn - The top level connection in the multi-host connections chain.public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerproxy - proxy objectmethod - method to invokeargs - method parametersjava.lang.Throwable - if an error occursprotected boolean allowedOnClosedConnection(java.lang.reflect.Method method)
method - method