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
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
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.
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