|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.proxy.Interceptor (src)
org.jboss.invocation.InvokerInterceptor
A very simple implementation of it that branches to the local stuff.
Field Summary | |
protected static java.lang.Class |
invokerProxyHA
The InvokerProxyHA class |
protected static Invoker (src) |
localInvoker
Static references to local invokers. |
protected Invoker (src) |
remoteInvoker
Invoker to the remote JMX node. |
Fields inherited from class org.jboss.proxy.Interceptor (src) |
nextInterceptor |
Constructor Summary | |
InvokerInterceptor()
Exposed for externalization. |
Method Summary | |
static Invoker (src) |
getLocal()
Get the local invoker reference, useful for optimization. |
boolean |
hasLocalTarget(Invocation (src) invocation)
Whether there is a local target |
java.lang.Object |
invoke(Invocation (src) invocation)
The invocation on the delegate, calls the right invoker. |
protected java.lang.Object |
invokeInvoker(Invocation (src) invocation)
Invoke using invoker |
protected java.lang.Object |
invokeLocal(Invocation (src) invocation)
Invoke using local invoker |
protected java.lang.Object |
invokeMarshalled(Invocation (src) invocation)
Invoke using local invoker and marshalled |
boolean |
isClustered(Invocation (src) invocation)
Whether we are in a clustered environment |
boolean |
isLocal()
Returns wether we are local to the originating container or not. |
boolean |
isLocal(Invocation (src) invocation)
Whether the target is local |
void |
readExternal(java.io.ObjectInput in)
Un-externalize this instance. |
static void |
setLocal(Invoker (src) invoker)
Set the local invoker reference, useful for optimization. |
void |
writeExternal(java.io.ObjectOutput out)
Externalize this instance. |
Methods inherited from class org.jboss.proxy.Interceptor (src) |
getNext, setNext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Invoker (src) remoteInvoker
protected static Invoker (src) localInvoker
protected static java.lang.Class invokerProxyHA
Constructor Detail |
public InvokerInterceptor()
Method Detail |
public static Invoker (src) getLocal()
public static void setLocal(Invoker (src) invoker)
public boolean isLocal()
public boolean isLocal(Invocation (src) invocation)
invocation
- the invocation
public boolean isClustered(Invocation (src) invocation)
NOTE: This should be future compatible under any new design where a prior target chooser interceptor picks a non HA target than that code being inside a ha invoker.
invocation
- the invocation
public boolean hasLocalTarget(Invocation (src) invocation)
invocation
-
public java.lang.Object invoke(Invocation (src) invocation) throws java.lang.Exception
invoke
in class Interceptor (src)
java.lang.Exception
protected java.lang.Object invokeLocal(Invocation (src) invocation) throws java.lang.Exception
invocation
- the invocation
java.lang.Exception
- for any errorprotected java.lang.Object invokeMarshalled(Invocation (src) invocation) throws java.lang.Exception
invocation
- the invocation
java.lang.Exception
- for any errorprotected java.lang.Object invokeInvoker(Invocation (src) invocation) throws java.lang.Exception
invocation
- the invocation
java.lang.Exception
- for any errorpublic void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
If this instance lives in a different VM than its container invoker, the remote interface of the container invoker is not externalized.
writeExternal
in interface java.io.Externalizable
writeExternal
in class Interceptor (src)
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
We check timestamps of the interfaces to see if the instance is in the original VM of creation
readExternal
in interface java.io.Externalizable
readExternal
in class Interceptor (src)
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |