| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface RemoteRef
RemoteRef 表示远程对象的句柄。RemoteStub 使用远程引用来执行对远程对象的远程方法调用。
RemoteStub| 字段摘要 | |
|---|---|
| static String | packagePrefix初始化服务器包的前缀:假定服务器 ref 类(如 UnicastRef、UnicastServerRef)的实现位于由前缀定义的包中。 | 
| static long | serialVersionUID指示与类的 JDK 1.1.x 版本的兼容性。 | 
| 方法摘要 | |
|---|---|
|  void | done(RemoteCall call)已过时。 1.2 样式 stub 不再使用此方法。stub 使用远程引用上的单个方法 invoke(Remote, Method, Object[], int)来执行参数编组、远程方法执行和返回值解组,而不是使用对远程引用(newCall、invoke和done)的方法调用序列。 | 
|  String | getRefClass(ObjectOutput out)返回要在流 'out' 上序列化的 ref 类型的类名称。 | 
|  void | invoke(RemoteCall call)已过时。 1.2 样式 stub 不再使用此方法。stub 使用远程引用上的单个方法 invoke(Remote, Method, Object[], int)来执行参数编组、远程方法执行和返回值解组,而不是使用对远程引用(newCall、invoke和done)的方法调用序列。 | 
|  Object | invoke(Remote obj,
       Method method,
       Object[] params,
       long opnum)调用某个方法。 | 
|  RemoteCall | newCall(RemoteObject obj,
        Operation[] op,
        int opnum,
        long hash)已过时。 1.2 样式 stub 不再使用此方法。stub 使用远程引用上的单个方法 invoke(Remote, Method, Object[], int)来执行参数编组、远程方法执行和返回值的解组,而不是使用该 stub 的远程引用(newCall、invoke和done)上的方法调用序列。 | 
|  boolean | remoteEquals(RemoteRef obj)比较两个远程对象是否相等。 | 
|  int | remoteHashCode()返回远程对象的哈希码。 | 
|  String | remoteToString()返回表示此远程对象的引用的 String。 | 
| 从接口 java.io.Externalizable 继承的方法 | 
|---|
| readExternal, writeExternal | 
| 字段详细信息 | 
|---|
static final long serialVersionUID
static final String packagePrefix
| 方法详细信息 | 
|---|
Object invoke(Remote obj,
              Method method,
              Object[] params,
              long opnum)
              throws Exception
obj - 包含 RemoteRef(如该对象的 RemoteStub)的对象。method - 要调用的方法params - 参数列表opnum - 可以用于表示该方法的哈希码
Exception - 如果在远程方法调用过程中发生任何异常
@Deprecated
RemoteCall newCall(RemoteObject obj,
                              Operation[] op,
                              int opnum,
                              long hash)
                   throws RemoteException
invoke(Remote, Method, Object[], int) 来执行参数编组、远程方法执行和返回值的解组,而不是使用该 stub 的远程引用(newCall、invoke 和 done)上的方法调用序列。
obj - 要通过它进行调用的远程 stubop - stub 操作的数组opnum - 操作数hash - stub/skeleton 接口哈希码
RemoteException - 如果初始化新的远程调用失败invoke(Remote,java.lang.reflect.Method,Object[],long)
@Deprecated
void invoke(RemoteCall call)
            throws Exception
invoke(Remote, Method, Object[], int) 来执行参数编组、远程方法执行和返回值解组,而不是使用对远程引用(newCall、invoke 和 done)的方法调用序列。
call - 表示远程调用的对象
Exception - 如果在远程方法调用的过程中发生任何异常invoke(Remote,java.lang.reflect.Method,Object[],long)
@Deprecated
void done(RemoteCall call)
          throws RemoteException
invoke(Remote, Method, Object[], int) 来执行参数编组、远程方法执行和返回值解组,而不是使用对远程引用(newCall、invoke 和 done)的方法调用序列。
call - 表示远程调用的对象
RemoteException - 如果在调用 cleanup 过程中发生远程错误invoke(Remote,java.lang.reflect.Method,Object[],long)String getRefClass(ObjectOutput out)
out - 要在其中序列化引用的输出流
int remoteHashCode()
Hashtableboolean remoteEquals(RemoteRef obj)
obj - 要与之比较的对象
HashtableString remoteToString()
| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。