Package org.apache.ofbiz.webapp.control
Class ControlEventListener
- java.lang.Object
-
- org.apache.ofbiz.webapp.control.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 Summary
Fields Modifier and Type Field Description static java.lang.String
module
protected static long
totalActiveSessions
protected static long
totalPassiveSessions
-
Constructor Summary
Constructors Constructor Description ControlEventListener()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
countActivateSession()
static void
countCreateSession()
static void
countDestroySession()
static void
countPassivateSession()
static long
getTotalActiveSessions()
static long
getTotalPassiveSessions()
static long
getTotalSessions()
void
logStats(javax.servlet.http.HttpSession session, GenericValue visit)
void
sessionCreated(javax.servlet.http.HttpSessionEvent event)
void
sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
-
-
-
Method Detail
-
sessionCreated
public void sessionCreated(javax.servlet.http.HttpSessionEvent event)
- Specified by:
sessionCreated
in interfacejavax.servlet.http.HttpSessionListener
-
sessionDestroyed
public void sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
- Specified by:
sessionDestroyed
in interfacejavax.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()
-
-