public final class

ObjectTable

extends Object
java.lang.Object
   ↳ sun.rmi.transport.ObjectTable

Class Overview

Object table shared by all implementors of the Transport interface. This table maps object ids to remote object targets in this address space.

Summary

Public Methods
static Remote getStub(Remote impl)
Returns the stub for the remote object obj passed as a parameter.
static Target getTarget(Remote impl)
Returns the target associated with the remote object
static boolean unexportObject(Remote obj, boolean force)
Remove the remote object, obj, from the RMI runtime.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Remote getStub (Remote impl)

Returns the stub for the remote object obj passed as a parameter. This operation is only valid after the object has been exported.

Returns
  • the stub for the remote object, obj.
Throws
NoSuchObjectException if the stub for the remote object could not be found.

public static Target getTarget (Remote impl)

Returns the target associated with the remote object

public static boolean unexportObject (Remote obj, boolean force)

Remove the remote object, obj, from the RMI runtime. If successful, the object can no longer accept incoming RMI calls. If the force parameter is true, the object is forcibly unexported even if there are pending calls to the remote object or the remote object still has calls in progress. If the force parameter is false, the object is only unexported if there are no pending or in progress calls to the object.

Parameters
obj the remote object to be unexported
force if true, unexports the object even if there are pending or in-progress calls; if false, only unexports the object if there are no pending or in-progress calls
Returns
  • true if operation is successful, false otherwise
Throws
NoSuchObjectException if the remote object is not currently exported