Class ControlEventListener

java.lang.Object
org.apache.ofbiz.webapp.control.ControlEventListener
All Implemented Interfaces:
EventListener, HttpSessionListener

public class ControlEventListener extends Object implements HttpSessionListener
HttpSessionListener that gathers and tracks various information and statistics
  • Constructor Details

    • ControlEventListener

      public ControlEventListener()
  • Method Details

    • sessionCreated

      public void sessionCreated(HttpSessionEvent event)
      Specified by:
      sessionCreated in interface HttpSessionListener
    • sessionDestroyed

      public void sessionDestroyed(HttpSessionEvent event)
      Specified by:
      sessionDestroyed in interface HttpSessionListener
    • logStats

      public void logStats(HttpSession session, GenericValue visit)
      Log stats.
      Parameters:
      session - the session
      visit - the 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()