Interface IStatefulServer

All Superinterfaces:
IServer
All Known Implementing Classes:
CascadedSC, StatefulServer

public interface IStatefulServer extends IServer
The Interface IStatefulServer.
  • Method Details

    • getType

      ServerType getType()
      Gets the server type.
      Specified by:
      getType in interface IServer
      Returns:
      the type
    • abortSession

      void abortSession(AbstractSession session, String string)
      Abort session on server.
      Specified by:
      abortSession in interface IServer
      Parameters:
      session - the session
      string - the reason
    • removeSession

      void removeSession(AbstractSession abstractSession)
      Removes an allocated session from the server.
      Parameters:
      abstractSession - the abstract session
    • addSession

      void addSession(AbstractSession session)
      Adds an allocated session to the server.
      Parameters:
      session - the session
    • getSessions

      List<AbstractSession> getSessions()
      Gets the sessions.
      Returns:
      the sessions
    • getSessionCount

      int getSessionCount()
      Gets the session count.
      Returns:
      the session count
    • hasFreeSession

      boolean hasFreeSession()
      Checks for free session.
      Returns:
      true, if successful
    • getMaxSessions

      int getMaxSessions()
      Gets the max sessions.
      Returns:
      the max sessions