Interface ServerNode


public interface ServerNode

Contains information about the server and its sessions.

An instance of ServerNode is passed to the Authenticator in its initialise method. This can then be used at a later time to obtain the current server session count and the maximum session count the server supports. The server identifier is also available via the getIdentifier() method.

  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The current count of active sessions in the server.
    Get the DataCache, through which objects can be created and deleted in the Liberator's object cache.
    A string identifying the server node.
    int
    The maximum sessions supported by the server licence.
  • Method Details

    • getIdentifier

      String getIdentifier()
      A string identifying the server node.
      Returns:
      the server node identifier
    • getCurrentSessionCount

      int getCurrentSessionCount()
      The current count of active sessions in the server.
      Returns:
      the count of current sessions in the server
    • getMaxSessionCount

      int getMaxSessionCount()
      The maximum sessions supported by the server licence.
      Returns:
      the maximum number of supported sessions
    • getDataCache

      DataCache getDataCache()
      Get the DataCache, through which objects can be created and deleted in the Liberator's object cache.
      Returns:
      an interface to the Liberator's object cache.