|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.softamis.cluster4spring.support.Endpoint<SI>
org.softamis.cluster4spring.rmi.support.RmiEndpoint<SI>
SI - - information about servicepublic class RmiEndpoint<SI extends java.io.Serializable>
Implementation of Endpoint that is used in RMI based cluster4spring.
| Field Summary | |
|---|---|
protected java.rmi.Remote |
fRemote
Remote object used by endpoint fpr remote service invocation |
| Fields inherited from class org.softamis.cluster4spring.support.Endpoint |
|---|
fAttributes, fEndpointKey, fLastAccessTime, fLog, fRemoteInvocationFactory, fServiceInfo |
| Constructor Summary | |
|---|---|
RmiEndpoint(org.springframework.remoting.support.RemoteInvocationFactory aRemoteInvocationFactory,
java.lang.String aEndpointKey,
SI aServiceInfo,
java.rmi.Remote aRemote)
Creates RMI endpoint. |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
doInvoke(org.aopalliance.intercept.MethodInvocation aMethodInvocation)
Performs invocation of given MehodInvocation. |
protected java.lang.Object |
doInvokeInternal(org.aopalliance.intercept.MethodInvocation aMethodInvocation,
org.springframework.remoting.rmi.RmiInvocationHandler aInvocationHandler)
Apply the given AOP method invocation to the given RmiInvocationHandler. |
java.rmi.Remote |
getRemote()
Returns remote object used by endpoint |
protected java.lang.Object |
invokeUsingInvocationHandler(org.aopalliance.intercept.MethodInvocation aInvocation)
Invokes given method invocation using RMI invoker |
protected java.lang.Object |
invokeUsingRmiStub(org.aopalliance.intercept.MethodInvocation aInvocation)
Invokes given method invocation using traditional RMI stub. |
void |
setRemote(java.rmi.Remote aRemote)
Sets remote object used by endpoint |
| Methods inherited from class org.softamis.cluster4spring.support.Endpoint |
|---|
createRemoteInvocation, getAttributes, getEndpointKey, getLastAccessTime, getServiceInfo, invoke, setAttributes, setEndpointKey, setLastAccessTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.rmi.Remote fRemote
| Constructor Detail |
|---|
public RmiEndpoint(org.springframework.remoting.support.RemoteInvocationFactory aRemoteInvocationFactory,
java.lang.String aEndpointKey,
SI aServiceInfo,
java.rmi.Remote aRemote)
aRemoteInvocationFactory - factory used to create remote invocationaEndpointKey - key used to identity endpointaServiceInfo - information need to locate serviceaRemote - remote object| Method Detail |
|---|
protected java.lang.Object doInvoke(org.aopalliance.intercept.MethodInvocation aMethodInvocation)
throws java.lang.Throwable
RmiInvocationHandler or regular RMI stub and invokes them accordingly.
doInvoke in class Endpoint<SI extends java.io.Serializable>aMethodInvocation - method invocation to invoke
java.lang.Throwable - exception that could occur during invocationinvokeUsingInvocationHandler(org.aopalliance.intercept.MethodInvocation),
invokeUsingRmiStub(org.aopalliance.intercept.MethodInvocation)
protected java.lang.Object invokeUsingRmiStub(org.aopalliance.intercept.MethodInvocation aInvocation)
throws java.lang.Throwable
aInvocation - method invocation to invoke
java.lang.Throwable - exception that could occur during invocation
protected java.lang.Object invokeUsingInvocationHandler(org.aopalliance.intercept.MethodInvocation aInvocation)
throws java.lang.Throwable
aInvocation - method invocation to invoke
java.lang.Throwable - exception that could occur during invocation
protected java.lang.Object doInvokeInternal(org.aopalliance.intercept.MethodInvocation aMethodInvocation,
org.springframework.remoting.rmi.RmiInvocationHandler aInvocationHandler)
throws java.rmi.RemoteException,
java.lang.NoSuchMethodException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
Can be overridden in subclasses to provide custom RemoteInvocation subclasses, containing additional invocation parameters like user credentials. Can also process the returned result object.
aMethodInvocation - the current AOP method invocationaInvocationHandler - the RmiInvocationHandler to apply the invocation to
java.lang.NoSuchMethodException - if the method name could not be resolved
java.lang.IllegalAccessException - if the method could not be accessed
java.lang.reflect.InvocationTargetException - if the method invocation resulted in an exception
java.rmi.RemoteExceptionRemoteInvocationpublic java.rmi.Remote getRemote()
public void setRemote(java.rmi.Remote aRemote)
aRemote - remote object used by endpoint
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||