Known Direct Subclasses
Activatable |
The Activatable class provides support for remote
objects that require persistent access over time and that
can be activated by the system. |
RegistryImpl |
A "registry" exists on every node that allows RMI connections to
servers on that node. |
UnicastRemoteObject |
Used for exporting a remote object with JRMP and obtaining a stub
that communicates to the remote object. |
|
Known Indirect Subclasses
ActivationGroup |
An ActivationGroup is responsible for creating new
instances of "activatable" objects in its group, informing its
ActivationMonitor when either: its object's become
active or inactive, or the group as a whole becomes inactive. |
ActivationGroupImpl |
The default activation group implementation. |
ReferenceWrapper |
The ReferenceWrapper class is a Remote wrapper for Reference
objects. |
SingleEntryRegistry |
A Registry that consists of a single entry that never changes. |
|
Class Overview
The RemoteServer
class is the common superclass to server
implementations and provides the framework to support a wide range
of remote reference semantics. Specifically, the functions needed
to create and export remote objects (i.e. to make them remotely
available) are provided abstractly by RemoteServer
and
concretely by its subclass(es).
Summary
Public Methods |
static
String
|
getClientHost()
Returns a string representation of the client host for the
remote method invocation being processed in the current thread.
|
static
PrintStream
|
getLog()
Returns stream for the RMI call log.
|
static
void
|
setLog(OutputStream out)
Log RMI calls to the output stream out .
|
[Expand]
Inherited Methods |
From class
java.rmi.server.RemoteObject
boolean
|
equals(Object obj)
Compares two remote objects for equality.
|
RemoteRef
|
getRef()
Returns the remote reference for the remote object.
|
int
|
hashCode()
Returns a hashcode for a remote object.
|
String
|
toString()
Returns a String that represents the value of this remote object.
|
static
Remote
|
toStub(Remote obj)
Returns the stub for the remote object obj passed
as a parameter.
|
|
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.
|
|
Protected Constructors
protected
RemoteServer
()
Constructs a RemoteServer
.
protected
RemoteServer
(RemoteRef ref)
Constructs a RemoteServer
with the given reference type.
Public Methods
public
static
String
getClientHost
()
Returns a string representation of the client host for the
remote method invocation being processed in the current thread.
Returns
- a string representation of the client host
public
static
PrintStream
getLog
()
Returns stream for the RMI call log.
public
static
void
setLog
(OutputStream out)
Log RMI calls to the output stream out
. If
out
is null
, call logging is turned off.
If there is a security manager, its
checkPermission
method will be invoked with a
java.util.logging.LoggingPermission("control")
permission; this could result in a SecurityException
.
Parameters
out
| the output stream to which RMI calls should be logged |
Throws
SecurityException
| if there is a security manager and
the invocation of its checkPermission method
fails |