Interface RemoteSession


public interface RemoteSession
The remote session.
Provides access to the remote (server-side) client session.
Author:
harald
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the client session info.
    void
    log(String name, Logger.Level level, String message)
    Logs a message at the server-side.
    void
    log(Logger.Level level, String message)
    Logs a message at the server-side.
    Uses the static logger of the remote session implementation class.
    void
    logStatistics(Logger.Level level, boolean clear)
    Logs the RMI-statistics at the server-side.
    Uses the static logger of the remote session implementation class.
  • Method Details

    • getClientSessionInfo

      SessionInfo getClientSessionInfo()
      Gets the client session info.

      The server may set certain values in the session info that may be of interest for the client application, for example the user-ID.

      Returns:
      the session info
    • log

      void log(Logger.Level level, String message)
      Logs a message at the server-side.
      Uses the static logger of the remote session implementation class.
      Parameters:
      level - the log level
      message - the log message
    • log

      void log(String name, Logger.Level level, String message)
      Logs a message at the server-side.
      Parameters:
      name - the logger name
      level - the log level
      message - the log message
    • logStatistics

      void logStatistics(Logger.Level level, boolean clear)
      Logs the RMI-statistics at the server-side.
      Uses the static logger of the remote session implementation class.
      Parameters:
      level - the logging level
      clear - true if clear statistics after dump