com.scooterframework.admin
Class WebSessionListener

java.lang.Object
  extended by com.scooterframework.admin.WebSessionListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.http.HttpSessionListener

public class WebSessionListener
extends java.lang.Object
implements javax.servlet.http.HttpSessionListener

WebSessionListener class monitors when sessions are created and destroyed on the application server.


Constructor Summary
WebSessionListener()
           
 
Method Summary
static int getSessionCount()
          Returns number of current sessions in the container.
static int getSessionCountMax()
          Returns the maximum number of current sessions.
static java.util.Date getSessionCountMaxDate()
          Returns the date of the maximum number of current sessions.
 void sessionCreated(javax.servlet.http.HttpSessionEvent se)
           
 void sessionDestroyed(javax.servlet.http.HttpSessionEvent se)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebSessionListener

public WebSessionListener()
Method Detail

sessionCreated

public void sessionCreated(javax.servlet.http.HttpSessionEvent se)
Specified by:
sessionCreated in interface javax.servlet.http.HttpSessionListener

sessionDestroyed

public void sessionDestroyed(javax.servlet.http.HttpSessionEvent se)
Specified by:
sessionDestroyed in interface javax.servlet.http.HttpSessionListener

getSessionCount

public static int getSessionCount()
Returns number of current sessions in the container.


getSessionCountMax

public static int getSessionCountMax()
Returns the maximum number of current sessions.


getSessionCountMaxDate

public static java.util.Date getSessionCountMaxDate()
Returns the date of the maximum number of current sessions.