D - P - E - public abstract class LocatorInvocationHandler<D,P,E> extends AbstractChildInvocationHandler<D,P,E>
AbstractInvocationHandler.SimpleInvokercluster, logger| Modifier | Constructor and Description |
|---|---|
protected |
LocatorInvocationHandler(P parent,
SQLProxy<D,P> proxy,
Invoker<D,P,E> invoker,
java.lang.Class<E> proxyClass,
java.util.Map<Database<D>,E> objectMap) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
close(P parent,
E locator) |
protected abstract java.util.Set<java.lang.reflect.Method> |
getDatabaseReadMethodSet() |
protected InvocationStrategy<D,E,?> |
getInvocationStrategy(E object,
java.lang.reflect.Method method,
java.lang.Object[] parameters)
Returns the appropriate
InvocationStrategy for the specified method. |
protected void |
postInvoke(E object,
java.lang.reflect.Method method,
java.lang.Object[] parameters)
Called after method is invoked.
|
protected void |
record(Invoker<D,E,?> invoker,
java.lang.reflect.Method method,
java.lang.Object[] parameters) |
close, createObject, getParent, getParentProxy, getRootaddChild, detectClusterPanic, entries, entry, getDatabaseCluster, getInvoker, getObject, handleFailure, handleFailures, handlePartialFailure, invoke, isRecordable, isSQLMethod, removeChild, removeChildren, replay, retainprotected LocatorInvocationHandler(P parent, SQLProxy<D,P> proxy, Invoker<D,P,E> invoker, java.lang.Class<E> proxyClass, java.util.Map<Database<D>,E> objectMap) throws java.lang.Exception
parent - proxy - invoker - proxyClass - objectMap - java.lang.Exceptionprotected InvocationStrategy<D,E,?> getInvocationStrategy(E object, java.lang.reflect.Method method, java.lang.Object[] parameters) throws java.lang.Exception
AbstractInvocationHandlerInvocationStrategy for the specified method.
This implementation detects Wrapper methods; and Object.equals(java.lang.Object), Object.hashCode(), and Object.toString().
Default invocation strategy is DatabaseWriteInvocationStrategy.getInvocationStrategy in class AbstractInvocationHandler<D,E>object - the proxied objectmethod - the method to invokeparameters - the method invocation parametersjava.lang.ExceptionAbstractInvocationHandler.getInvocationStrategy(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])protected abstract java.util.Set<java.lang.reflect.Method> getDatabaseReadMethodSet()
protected void postInvoke(E object, java.lang.reflect.Method method, java.lang.Object[] parameters)
AbstractInvocationHandlerpostInvoke in class AbstractInvocationHandler<D,E>object - the proxied objectmethod - the method that was just invokedparameters - the parameters of the method that was just invokedAbstractInvocationHandler.postInvoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])protected void close(P parent, E locator)
close in class AbstractChildInvocationHandler<D,P,E>AbstractChildInvocationHandler.close(java.lang.Object, java.lang.Object)protected void record(Invoker<D,E,?> invoker, java.lang.reflect.Method method, java.lang.Object[] parameters)
record in class AbstractInvocationHandler<D,E>AbstractInvocationHandler.record(net.sf.hajdbc.sql.Invoker, java.lang.reflect.Method, java.lang.Object[])