站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 server API Documentation 英文版文档

Invoker (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.invocation
Interface Invoker

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

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:

  • Initial check-in
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

public 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

public 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

public 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.