org.jboss.invocation
Interface Invoker

All Superinterfaces:
Remote
All Known Implementing Classes:
HttpInvokerProxy, JRMPInvoker, JRMPInvokerProxy, LocalInvoker, PooledInvokerProxy, UnifiedInvokerProxy

public interface Invoker
extends Remote

This invoker carries Invocation in the JMX target node.

The interface in the current JBoss can be implemented with Remote/local switches or with clustered invokers, this interface just masks the network details and the topology of the JMX nodes for the client proxies.

Version:
$Revision: 1.7 $

Revisions:

20011114 marc fleury:

Author:
Marc Fleury

Field Summary
static org.jboss.util.id.GUID ID
          A globaly unique identifier use to determine if an instance is local to the invoker.
 
Method Summary
 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
 Object invoke(Invocation invocation)
          The invoke with an Invocation Object.
 

Field Detail

ID

static final org.jboss.util.id.GUID ID
A globaly unique identifier use to determine if an instance is local to the invoker.

Method Detail

getServerHostName

String getServerHostName()
                         throws 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

Throws:
Exception

invoke

Object invoke(Invocation invocation)
              throws 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).

Parameters:
invocation - A pointer to the invocation object
Returns:
Return value of method invocation.
Throws:
Exception - Failed to invoke method.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.