Class ControlEventListener

  • All Implemented Interfaces:
    java.util.EventListener, javax.servlet.http.HttpSessionListener

    public class ControlEventListener
    extends java.lang.Object
    implements javax.servlet.http.HttpSessionListener
    HttpSessionListener that gathers and tracks various information and statistics
    • Field Detail

      • module

        public static final java.lang.String module
      • totalActiveSessions

        protected static long totalActiveSessions
      • totalPassiveSessions

        protected static long totalPassiveSessions
    • Constructor Detail

      • ControlEventListener

        public ControlEventListener()
    • Method Detail

      • sessionCreated

        public void sessionCreated​(javax.servlet.http.HttpSessionEvent event)
        Specified by:
        sessionCreated in interface javax.servlet.http.HttpSessionListener
      • sessionDestroyed

        public void sessionDestroyed​(javax.servlet.http.HttpSessionEvent event)
        Specified by:
        sessionDestroyed in interface javax.servlet.http.HttpSessionListener
      • logStats

        public void logStats​(javax.servlet.http.HttpSession session,
                             GenericValue visit)
      • getTotalActiveSessions

        public static long getTotalActiveSessions()
      • getTotalPassiveSessions

        public static long getTotalPassiveSessions()
      • getTotalSessions

        public static long getTotalSessions()
      • countCreateSession

        public static void countCreateSession()
      • countDestroySession

        public static void countDestroySession()
      • countPassivateSession

        public static void countPassivateSession()
      • countActivateSession

        public static void countActivateSession()