org.huihoo.jfox.ejb.server.invoke
Interface Invoker

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
JRMPInvoker, JRMPInvokerProxy

public interface Invoker
extends java.rmi.Remote

Version:
$0.9.0$
Author:
tai_1219@sina.com

Field Summary
static long STARTUP
          Public -------------------------------------------------------- The time when this class was initialized.
 
Method Summary
 java.lang.String getServerHostName()
          A free form String identifier for this delegate invoker, can be clustered or target node This should evolve in a more advanced meta-inf object
 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(java.lang.String actionName, java.lang.Object[] parameters, java.lang.String jmxname)
           
 

Field Detail

STARTUP

public static final long STARTUP
Public -------------------------------------------------------- The time when this class was initialized. Used to determine if this instance lives in the same VM as the container.

Method Detail

getServerHostName

public java.lang.String getServerHostName()
                                   throws java.lang.Exception
A free form String identifier for this delegate invoker, can be clustered or target node This should evolve in a more advanced meta-inf object

Returns:
String
Throws:
java.lang.Exception

invoke

public java.lang.Object invoke()
                        throws java.lang.Exception
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).

Returns:
Return value of method invocation.
Throws:
java.lang.Exception - Failed to invoke method.@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
Parameters:
actionName -
parameters -
jmxname -
Returns:
Object
Throws:
java.lang.Exception