Package org.apache.ofbiz.webapp.control
Class ControlEventListener
java.lang.Object
org.apache.ofbiz.webapp.control.ControlEventListener
- All Implemented Interfaces:
EventListener
,HttpSessionListener
HttpSessionListener that gathers and tracks various information and statistics
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
static void
static void
static long
static long
static long
void
logStats
(HttpSession session, GenericValue visit) Log stats.void
sessionCreated
(HttpSessionEvent event) void
sessionDestroyed
(HttpSessionEvent event)
-
Constructor Details
-
ControlEventListener
public ControlEventListener()
-
-
Method Details
-
sessionCreated
- Specified by:
sessionCreated
in interfaceHttpSessionListener
-
sessionDestroyed
- Specified by:
sessionDestroyed
in interfaceHttpSessionListener
-
logStats
Log stats.- Parameters:
session
- the sessionvisit
- 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()
-