java.lang.Object
|
+----java.rmi.server.RemoteObject
|
+----java.rmi.server.RemoteServer
|
+----java.rmi.server.UnicastRemoteObject
UnicastRemoteObject 类定义了一个不可复制的远程对象, 它的引用只有在服务器进程活动时有效。 UnicastRemoteObject 类提供对使用 TCP 流的点对点活动对象引用(唤醒,参数结果)的支持。
该对象要求远程行为应该通过 UnicastRemoteObject 来扩展 RemoteObject。如果未扩展 UnicastRemoteObject ,实现类必须确保从 Object 类继承的 hashCode, equals 和 toString 方法有正确的语义,以使得它们对远程对象有适当的行为。
protected UnicastRemoteObject() throws RemoteException
public Object clone() throws CloneNotSupportedException
public static RemoteStub exportObject(Remote obj) throws RemoteException