org.ow2.carol.cmi.rpc
Class StatefulPOJOInvocationHandler
java.lang.Object
org.ow2.carol.cmi.rpc.CMIInvocationHandler<java.lang.Object>
org.ow2.carol.cmi.rpc.StatefulPOJOInvocationHandler
- All Implemented Interfaces:
- java.io.Serializable, java.lang.reflect.InvocationHandler
public class StatefulPOJOInvocationHandler
- extends org.ow2.carol.cmi.rpc.CMIInvocationHandler<java.lang.Object>
This is the InvocationHandler for stateful POJOs.
- Author:
- Loris Bouzonnet
- See Also:
- Serialized Form
| Fields inherited from class org.ow2.carol.cmi.rpc.CMIInvocationHandler |
clusterViewManager, cmiProxyHandle, itf, objectName, protocolName |
|
Constructor Summary |
protected |
StatefulPOJOInvocationHandler(java.lang.ClassLoader classLoader,
org.ow2.carol.cmi.controller.common.ClusterViewManager clusterViewManager,
java.lang.String objectName,
java.lang.String protocolName,
java.lang.Class<?> itf)
|
|
Method Summary |
protected void |
checkInitialized()
|
protected org.ow2.carol.cmi.reference.CMIReferenceable<java.lang.Object> |
getCMIReferenceable(org.ow2.carol.cmi.reference.CMIReference cmiReference)
|
protected org.ow2.carol.cmi.reference.CMIProxyHandle |
getHandle(org.ow2.carol.cmi.rpc.CMIProxy cmiProxy)
|
protected java.lang.Object |
invokeRemoteMethod(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object... args)
Handles remote methods. |
protected void |
onExceptionHook(java.lang.String objectName,
org.ow2.carol.cmi.reference.CMIReferenceable<java.lang.Object> cmiReferenceable)
|
protected void |
onFinallyHook(java.lang.String objectName,
org.ow2.carol.cmi.reference.CMIReferenceable<java.lang.Object> cmiReferenceable)
|
| Methods inherited from class org.ow2.carol.cmi.rpc.CMIInvocationHandler |
getCurrentRef, getHandleMethodName, invoke, postInvokeHook, preInvokeHook, proxyToString, setClassLoader, setCmiProxyHandle, setCurrentRef |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatefulPOJOInvocationHandler
protected StatefulPOJOInvocationHandler(java.lang.ClassLoader classLoader,
org.ow2.carol.cmi.controller.common.ClusterViewManager clusterViewManager,
java.lang.String objectName,
java.lang.String protocolName,
java.lang.Class<?> itf)
- Parameters:
classLoader - clusterViewManager - objectName - protocolName - itf -
invokeRemoteMethod
protected java.lang.Object invokeRemoteMethod(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object... args)
throws java.lang.Throwable
- Handles remote methods.
- Overrides:
invokeRemoteMethod in class org.ow2.carol.cmi.rpc.CMIInvocationHandler<java.lang.Object>
- Throws:
java.lang.Throwable
checkInitialized
protected void checkInitialized()
throws org.ow2.carol.cmi.rpc.CMIInvocationHandlerException
- Specified by:
checkInitialized in class org.ow2.carol.cmi.rpc.CMIInvocationHandler<java.lang.Object>
- Throws:
org.ow2.carol.cmi.rpc.CMIInvocationHandlerException
getHandle
protected org.ow2.carol.cmi.reference.CMIProxyHandle getHandle(org.ow2.carol.cmi.rpc.CMIProxy cmiProxy)
- Specified by:
getHandle in class org.ow2.carol.cmi.rpc.CMIInvocationHandler<java.lang.Object>
getCMIReferenceable
protected org.ow2.carol.cmi.reference.CMIReferenceable<java.lang.Object> getCMIReferenceable(org.ow2.carol.cmi.reference.CMIReference cmiReference)
throws java.lang.Exception
- Specified by:
getCMIReferenceable in class org.ow2.carol.cmi.rpc.CMIInvocationHandler<java.lang.Object>
- Throws:
java.lang.Exception
onExceptionHook
protected void onExceptionHook(java.lang.String objectName,
org.ow2.carol.cmi.reference.CMIReferenceable<java.lang.Object> cmiReferenceable)
throws java.lang.Throwable
- Specified by:
onExceptionHook in class org.ow2.carol.cmi.rpc.CMIInvocationHandler<java.lang.Object>
- Throws:
java.lang.Throwable
onFinallyHook
protected void onFinallyHook(java.lang.String objectName,
org.ow2.carol.cmi.reference.CMIReferenceable<java.lang.Object> cmiReferenceable)
- Specified by:
onFinallyHook in class org.ow2.carol.cmi.rpc.CMIInvocationHandler<java.lang.Object>
Copyright © 2008 OW2 Consortium. All Rights Reserved.