Class JMapServerSessionManager

java.lang.Object
com.kheops.jmap.server.JMapServerSessionManager
All Implemented Interfaces:
JMapServerSessionCtrl

public class JMapServerSessionManager extends Object implements JMapServerSessionCtrl
  • Method Details

    • getSystemSessionId

      public int getSystemSessionId()
    • isSystemUser

      public boolean isSystemUser(User user)
    • openSession

      public JMapServerSessionStatus openSession(User user, InetAddress clientAddress, SessionType sessionType, int options)
    • sessionExists

      public boolean sessionExists(int sessionId)
    • getSessionUser

      public User getSessionUser(int sessionId)
      Specified by:
      getSessionUser in interface JMapServerSessionCtrl
    • getSession

      public JMapServerSession getSession(int sessionId)
    • setSessionLastRequestTime

      public void setSessionLastRequestTime(int sessionId)
    • setSessionProjectId

      public void setSessionProjectId(int sessionId, int projectId)
    • isMaxSessionCountExceeded

      public boolean isMaxSessionCountExceeded(int sessionId)
    • getCurrentSessionCount

      public Map<SessionType,com.kheops.jmap.server.JMapServerSessionManager.SessionCount> getCurrentSessionCount()
    • getSessionCount

      public int getSessionCount()
    • getConcurrentSessionCount

      public int getConcurrentSessionCount()
    • getReservedSessionCount

      public int getReservedSessionCount()
      Returns the current reserved session count.
      Returns:
      the session count.
    • getSessionCount

      public int getSessionCount(SessionType sessionType, boolean concurrent)
      Returns the session count for the specified session type.
      Parameters:
      sessionType - the session type to filter.
      concurrent - if true, searches for concurrent sessions, otherwise searches for reserved sessions.
      Returns:
      the session count.
    • closeSession

      public void closeSession(int sessionId)
    • closeAllSessions

      public void closeAllSessions()
    • getCurrentSessions

      public Set<Integer> getCurrentSessions()
    • getCurrentSessionsInfos

      public Collection<JMapServerSession> getCurrentSessionsInfos()
    • addSessionListener

      public void addSessionListener(JMapServerSessionListener listener)
      Specified by:
      addSessionListener in interface JMapServerSessionCtrl
    • removeSessionListener

      public void removeSessionListener(JMapServerSessionListener listener)
      Specified by:
      removeSessionListener in interface JMapServerSessionCtrl
    • isSystemSessionId

      public boolean isSystemSessionId(int id)
      Specified by:
      isSystemSessionId in interface JMapServerSessionCtrl