站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.1.8, Java 2 SDK 英文文档

Class java.rmi.server.UnicastRemoteObject - JDK 5 Documentation v1.1.8, Java 2 SDK 英文文档

All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.rmi.server.UnicastRemoteObject

java.lang.Object
   |
   +----java.rmi.server.RemoteObject
           |
           +----java.rmi.server.RemoteServer
                   |
                   +----java.rmi.server.UnicastRemoteObject

public class UnicastRemoteObject
extends RemoteServer
The UnicastRemoteObject class defines a non-replicated remote object whose references are valid only while the server process is alive. The UnicastRemoteObject class provides support for point-to-point active object references (invocations, parameters, and results) using TCP streams.

Objects that require remote behavior should extend RemoteObject, typically via UnicastRemoteObject. If UnicastRemoteObject is not extended, the implementation class must then assume the responsibility for the correct semantics of the hashCode, equals, and toString methods inherited from the Object class, so that they behave appropriately for remote objects.


Constructor Index

 o UnicastRemoteObject()
Create and export a new UnicastRemoteObject object using an anonymous port.

Method Index

 o clone()
Returns a clone of the remote object that is distinct from the original.
 o exportObject(Remote)
Export the remote object to make it available to receive incoming calls.

Constructors

 o UnicastRemoteObject
 protected UnicastRemoteObject() throws RemoteException
Create and export a new UnicastRemoteObject object using an anonymous port.

Methods

 o clone
 public Object clone() throws CloneNotSupportedException
Returns a clone of the remote object that is distinct from the original.

Returns:
the new remote object
Throws: CloneNotSupportedException
if clone failed due to a RemoteException.
Overrides:
clone in class Object
 o exportObject
 public static RemoteStub exportObject(Remote obj) throws RemoteException
Export the remote object to make it available to receive incoming calls.

Parameters:
obj - the remote object to be exported
Throws: RemoteException
if export fails

All Packages  Class Hierarchy  This Package  Previous  Next  Index

Submit a bug or feature - Version 1.1.8 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1995-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.