java.rmi.server
public abstract class RemoteServer extends RemoteObject
Constructor Summary | |
---|---|
protected | RemoteServer()
Does nothing, delegates to super(). |
protected | RemoteServer(RemoteRef ref)
Does nothing, delegates to super(ref). |
Method Summary | |
---|---|
static String | getClientHost()
Get the host of the calling client. |
static PrintStream | getLog()
Get the stream for logging RMI calls.
|
static void | setLog(OutputStream out)
Set the stream for logging RMI calls.
|
Returns: the client host address
Throws: ServerNotActiveException if the current thread is not an instance of the RMIIncomingThread.
Returns: the associated stream.
Parameters: out the stream to set or null to turn the logging off.