API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.rmi.server. UnicastRemoteObject View Source
Author(s)
Ann Wollrath
Peter Jones
Since
JDK1.1
Version
1.33, 11/17/05
Serial
Hierarchy
 Object
      RemoteObject
          RemoteServer
              UnicastRemoteObject
Implements
Subclasses
Description
public class UnicastRemoteObject
  Used for exporting a remote object with JRMP and obtaining a stub that communicates to the remote object.
See also:   
Constructors
protected UnicastRemoteObject () throws RemoteException
  Creates and exports a new UnicastRemoteObject object using an anonymous port.
protected UnicastRemoteObject (int port) throws RemoteException
  Creates and exports a new UnicastRemoteObject object using the particular supplied port.
protected UnicastRemoteObject (int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) throws RemoteException
  Creates and exports a new UnicastRemoteObject object using the particular supplied port and socket factories.
Methods
Hide/Show inherited methods
public Object clone () throws CloneNotSupportedException
  Returns a clone of the remote object that is distinct from the original.
public boolean equals (Object obj) [Inherited From RemoteObject]
  Compares two remote objects for equality.
publicstatic RemoteStub exportObject (Remote obj) throws RemoteException
  Exports the remote object to make it available to receive incoming calls using an anonymous port.
publicstatic Remote exportObject (Remote obj, int port) throws RemoteException
  Exports the remote object to make it available to receive incoming calls, using the particular supplied port.
publicstatic Remote exportObject (Remote obj, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) throws RemoteException
  Exports the remote object to make it available to receive incoming calls, using a transport specified by the given socket factory.
publicstatic String getClientHost () throws ServerNotActiveException [Inherited From RemoteServer]
  Returns a string representation of the client host for the remote method invocation being processed in the current thread.
publicstatic PrintStream getLog () [Inherited From RemoteServer]
  Returns stream for the RMI call log.
public RemoteRef getRef () [Inherited From RemoteObject]
  Returns the remote reference for the remote object.
public int hashCode () [Inherited From RemoteObject]
  Returns a hashcode for a remote object.
publicstatic void setLog (OutputStream out) [Inherited From RemoteServer]
  Log RMI calls to the output stream out.
public String toString () [Inherited From RemoteObject]
Returns a String that represents the value of this remote object.
publicstatic Remote toStub (Remote obj) throws NoSuchObjectException [Inherited From RemoteObject]
  Returns the stub for the remote object obj passed as a parameter.
publicstatic boolean unexportObject (Remote obj, boolean force) throws NoSuchObjectException
  Removes the remote object, obj, from the RMI runtime.
Fields
Hide/Show inherited fields
protectedtransient RemoteRef ref [Inherited From RemoteObject]
The object's remote reference.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar