org.huihoo.jfox.ejb.server.invoke
Class JRMPInvokerProxy

java.lang.Object
  |
  +--org.huihoo.jfox.ejb.server.invoke.JRMPInvokerProxy
All Implemented Interfaces:
java.io.Externalizable, Invoker, java.rmi.Remote, java.io.Serializable

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

Version:
$0.9.0$
Author:
tai_1219@sina.com
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.huihoo.jfox.ejb.server.invoke.Invoker
STARTUP
 
Constructor Summary
JRMPInvokerProxy()
          Get and set methods Constructors --------------------------------------------------
JRMPInvokerProxy(Invoker remoteInvoker)
          Create a new Proxy.
 
Method Summary
 java.lang.String getServerHostName()
          Public -------------------------------------------------------- The name of of the server
 java.lang.Object invoke()
          The invoke with an Invocation Object the delegate can handle network protocols on behalf of proxies (proxies delegate to these puppies) We provide default implemenations with JRMP/Local/Clustered invokers.
 java.lang.Object invoke(Invocation invocation)
           
 java.lang.Object invoke(java.lang.String actionName, java.lang.Object[] parameters, java.lang.String jmxname)
          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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRMPInvokerProxy

public JRMPInvokerProxy()
Get and set methods Constructors --------------------------------------------------


JRMPInvokerProxy

public JRMPInvokerProxy(Invoker remoteInvoker)
Create a new Proxy.

Method Detail

getServerHostName

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

Specified by:
getServerHostName in interface Invoker
Returns:
String
Throws:
java.lang.Exception

invoke

public java.lang.Object invoke()
                        throws java.lang.Exception
Description copied from interface: Invoker
The invoke with an Invocation Object the delegate can handle network protocols on behalf of proxies (proxies delegate to these puppies) We provide default implemenations with JRMP/Local/Clustered invokers. The delegates are not tied to a type of invocation (EJB or generic RMI).

Specified by:
invoke in interface Invoker
Returns:
Object
Throws:
java.lang.Exception

invoke

public java.lang.Object invoke(java.lang.String actionName,
                               java.lang.Object[] parameters,
                               java.lang.String jmxname)
                        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
Parameters:
actionName -
parameters -
jmxname -
Returns:
Object
Throws:
java.lang.Exception

invoke

public java.lang.Object invoke(Invocation invocation)
                        throws java.lang.Exception
Parameters:
invocation -
Returns:
Object
Throws:
java.lang.Exception

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Externalize this instance. If this instance lives in a different VM than its container invoker, the remote interface of the container invoker is not externalized.

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

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Un-externalize this instance. We check timestamps of the interfaces to see if the instance is in the original VM of creation

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