org.jboss.invocation.jrmp.interfaces
Class JRMPInvokerProxy

java.lang.Object
  extended byorg.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy
All Implemented Interfaces:
java.io.Externalizable, Invoker (src) , java.rmi.Remote, java.io.Serializable
Direct Known Subclasses:
JRMPInvokerProxyHA (src)

public class JRMPInvokerProxy
extends java.lang.Object
implements Invoker (src) , java.io.Externalizable

JRMPInvokerProxy, local to the proxy and is capable of delegating to the JRMP implementations

See Also:
Serialized Form

Field Summary
static int MAX_RETRIES
          max retries on a ConnectException.
protected  Invoker (src) remoteInvoker
           
 
Fields inherited from interface org.jboss.invocation.Invoker (src)
ID
 
Constructor Summary
JRMPInvokerProxy()
          Exposed for externalization.
JRMPInvokerProxy(Invoker (src)  remoteInvoker)
          Create a new Proxy.
 
Method Summary
 java.lang.String getServerHostName()
          The name of of the server.
 java.lang.Object getTransactionPropagationContext()
          ???
 java.lang.Object invoke(Invocation (src)  invocation)
          The invocation on the delegate, calls the right invoker.
 void readExternal(java.io.ObjectInput in)
          Un-externalize this instance.
 void writeExternal(java.io.ObjectOutput out)
          Externalize this instance and handle obtaining the remoteInvoker stub
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

remoteInvoker

protected Invoker (src)  remoteInvoker

MAX_RETRIES

public static int MAX_RETRIES
max retries on a ConnectException.

Constructor Detail

JRMPInvokerProxy

public JRMPInvokerProxy()
Exposed for externalization.


JRMPInvokerProxy

public JRMPInvokerProxy(Invoker (src)  remoteInvoker)
Create a new Proxy.

Method Detail

getServerHostName

public java.lang.String getServerHostName()
                                   throws java.lang.Exception
The name of of the server.

Specified by:
getServerHostName in interface Invoker (src)
Throws:
java.lang.Exception

getTransactionPropagationContext

public java.lang.Object getTransactionPropagationContext()
                                                  throws SystemException (src) 
???

Returns:
the transaction propagation context of the transaction associated with the current thread. Returns null if the transaction manager was never set, or if no transaction is associated with the current thread.
Throws:
SystemException (src)

invoke

public java.lang.Object invoke(Invocation (src)  invocation)
                        throws java.lang.Exception
The invocation on the delegate, calls the right invoker. Remote if we are remote, local if we are local.

Specified by:
invoke in interface Invoker (src)
Parameters:
invocation - A pointer to the invocation object
Returns:
Return value of method invocation.
Throws:
java.lang.Exception - Failed to invoke method.

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Externalize this instance and handle obtaining the remoteInvoker stub

Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Un-externalize this instance.

Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException