public abstract class RemoteServer extends RemoteObject
ref
Modifier | Constructor and Description |
---|---|
protected |
RemoteServer()
Does nothing, delegates to super().
|
protected |
RemoteServer(RemoteRef ref)
Does nothing, delegates to super(ref).
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected RemoteServer()
protected RemoteServer(RemoteRef ref)
public static String getClientHost() throws ServerNotActiveException
RMIIncomingThread
.ServerNotActiveException
- if the current thread is not an instance
of the RMIIncomingThread.public static void setLog(OutputStream out)
out
- the stream to set or null to turn the logging off.public static PrintStream getLog()