java.rmi.RemoteUnicastRemoteObjectpublic abstract class RemoteServer extends RemoteObject
java.rmi.* package.| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.String |
getClientHost() |
Returns a string representation of the client host for the
remote method invocation being processed in the current thread.
|
static java.io.PrintStream |
getLog() |
Returns the stream for an RMI call log.
|
static void |
setLog(java.io.OutputStream out) |
Logs RMI calls to the output stream,
out. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStubpublic static java.lang.String getClientHost()
throws java.rmi.server.ServerNotActiveException
java.rmi.server.ServerNotActiveException - if no remote method invocation
is being processed in the current thread.public static void setLog(java.io.OutputStream out)
out.
out is null, call logging is turned off.checkPermission method is invoked with
java.util.logging.LoggingPermission("control")
permission.out - the output stream to which RMI calls are logged.java.lang.SecurityException - if there is a security manager and
the invocation of its checkPermission method
fails.getLog()public static java.io.PrintStream getLog()
setLog(java.io.OutputStream)