APIdia Launch Partner
Top Description Fields Constructors Methods
java.rmi.server

public abstract Class RemoteServer

extends RemoteObject
Class Inheritance
Known Direct Subclasses
java.rmi.server.UnicastRemoteObject, sun.rmi.registry.RegistryImpl
Imports
java.rmi.*, sun.rmi.server.UnicastServerRef, sun.rmi.runtime.Log

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).
Author
Ann Wollrath
Since
1.1

Field Summary

Modifier and TypeField and Description
private static boolean
private static final long
Inherited from java.rmi.server.RemoteObject:
ref

Constructor Summary

AccessConstructor and Description
protected
RemoteServer()

Constructs a RemoteServer.

protected
RemoteServer(RemoteRef
the remote reference
ref
)

Constructs a RemoteServer with the given reference type.

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

a string representation of the client host
getClientHost
()

Returns a string representation of the client host for the remote method invocation being processed in the current thread.

public static PrintStream

Returns:

the call log
getLog
()

Returns stream for the RMI call log.

public static void
setLog(OutputStream
the output stream to which RMI calls should be logged
out
)

Log RMI calls to the output stream out.

Inherited from java.rmi.server.RemoteObject:
equalsgetRefhashCodetoStringtoStub

Field Detail

logNullback to summary
private static boolean logNull
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.rmi.server.RemoteObject.serialVersionUID.

Constructor Detail

RemoteServerback to summary
protected RemoteServer()

Constructs a RemoteServer.

Since
1.1
RemoteServerback to summary
protected RemoteServer(RemoteRef ref)

Constructs a RemoteServer with the given reference type.

Parameters
ref:RemoteRef

the remote reference

Since
1.1

Method Detail

getClientHostback to summary
public static String getClientHost() throws ServerNotActiveException

Returns a string representation of the client host for the remote method invocation being processed in the current thread.

Returns:String

a string representation of the client host

Exceptions
ServerNotActiveException:
if no remote method invocation is being processed in the current thread
Since
1.1
getLogback to summary
public static PrintStream getLog()

Returns stream for the RMI call log.

Returns:PrintStream

the call log

Since
1.1
See Also
setLog
setLogback to summary
public static void setLog(OutputStream out)

Log RMI calls to the output stream out. If out is null, call logging is turned off.

Parameters
out:OutputStream

the output stream to which RMI calls should be logged

Since
1.1
See Also
getLog