KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfox > ioc > connector > ConnectorRemote


1 /* JFox, the OpenSource J2EE Application Server
2  *
3  * Distributable under GNU LGPL license by gun.org
4  * more details please visit http://www.huihoo.org/jfox
5  */

6
7 package org.jfox.ioc.connector;
8
9 import java.rmi.Remote JavaDoc;
10 import java.rmi.RemoteException JavaDoc;
11
12 /**
13  * 远程接入服务接口
14  *
15  * @author <a HREF="mailto:young_yy@hotmail.com">Young Yang</a>
16  */

17
18 public interface ConnectorRemote extends Remote JavaDoc {
19     /**
20      * 这个方法用来实现远程调用,ConnectorService接收到远程调用之后,
21      * 将调用容器完成真正的请求
22      *
23      * @param invocation
24      * @return 请求结果
25      * @throws java.rmi.RemoteException
26      */

27     Object JavaDoc invoke(Invocation invocation) throws RemoteException JavaDoc, Exception JavaDoc;
28
29     /**
30      * 用来测试该 ConnectorService 是否还活动的方法,方法主体为空
31      *
32      * @throws RemoteException
33      */

34     void ping() throws RemoteException JavaDoc;
35
36     String JavaDoc getProtocol() throws RemoteException JavaDoc;
37
38 }
39
Popular Tags