KickJava   Java API By Example, From Geeks To Geeks.

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


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.io.Serializable JavaDoc;
10 import java.lang.reflect.Method JavaDoc;
11
12 /**
13  * @author <a HREF="mailto:young_yy@hotmail.com">Young Yang</a>
14  */

15
16 public interface Invocation extends Serializable JavaDoc{
17     /**
18      * @return 要执行的方法的 hash, 这个 hash 可以唯一的标志一个 method
19      */

20     String JavaDoc getMethodHash();
21
22     Object JavaDoc[] getArgs();
23
24     /**
25      * 要调用的远程对象的id
26      * @return
27      */

28     ObjectId getObjectId();
29
30     /**
31      * 在由 Bucket 取得真是的 Method 对象之后,把 Method 设置到 Invocation 中
32      *
33      * @param method
34      */

35     void setMethod(Method JavaDoc method);
36
37     Method JavaDoc getMethod();
38
39     /**
40      * 用来执行该 Invocation 的对象
41      * @param targetObject
42      */

43     void setTargetObject(Object JavaDoc targetObject);
44
45     Object JavaDoc getTargetObject();
46
47     /**
48      * 设置该请求是否需要集群,如果集群的话,服务器执行完请求之后,会复制对象到兄弟及子介点
49      */

50     void setClustable(boolean clustable);
51     boolean isClustable();
52 }
53
Popular Tags