Class SessionCountListener
java.lang.Object
org.ametys.runtime.plugins.admin.jvmstatus.SessionCountListener
- All Implemented Interfaces:
EventListener
,HttpSessionListener
Simple HttpSessionListener counting sessions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
Returns the number of active Sessionsvoid
void
-
Constructor Details
-
SessionCountListener
public SessionCountListener()Active the static listener
-
-
Method Details
-
sessionCreated
- Specified by:
sessionCreated
in interfaceHttpSessionListener
-
sessionDestroyed
- Specified by:
sessionDestroyed
in interfaceHttpSessionListener
-
getSessionCount
Returns the number of active Sessions- Returns:
- the number of active Sessions
- Throws:
IllegalStateException
- if the listener is not registered
-