|
EAF 7.4 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lutris.appserver.server.sessionContainerAdapter.ContainerAdapterSessionManager
com.lutris.appserver.server.sessionContainerAdapter.JmxContainerAdapterSessionManager
public class JmxContainerAdapterSessionManager
Description:
an implementation of ContainerAdapterSessionManager specific to the Tomcat Servlet container. It uses JMX to obtain some data form the Tomcat's session manager, which really manages the sessions
Field Summary |
---|
Fields inherited from class com.lutris.appserver.server.sessionContainerAdapter.ContainerAdapterSessionManager |
---|
CFG_ENCODE_FIRST_URL, CFG_ENCODE_URL_STATE, defaultEncodeUrlState, defaultMaxSessionIdleTime, encodeFirstUrl, encodeUrlState, maxSessionIdleTime, SESSION |
Fields inherited from interface com.lutris.appserver.server.session.SessionManager |
---|
ENCODE_URL_ALWAYS, ENCODE_URL_AUTO, ENCODE_URL_NEVER |
Constructor Summary | |
---|---|
JmxContainerAdapterSessionManager(com.lutris.appserver.server.Application application,
com.lutris.util.Config config,
com.lutris.logging.LogChannel logger)
|
Method Summary | |
---|---|
int |
activeSessionCount()
Gets the number of currently active sessions. |
com.lutris.appserver.server.session.Session |
createSession(HttpPresentationComms comms)
Creates a new session |
void |
deleteSession(com.lutris.appserver.server.session.Session SessionId)
Delete existing session |
void |
deleteSession(java.lang.String SessionId)
Delete existing session |
int |
expiredSessionCount()
|
void |
expireSession(java.lang.String SessionId)
Expires the session identified by the SessionId |
java.lang.String |
getLastAccessTime(java.lang.String SessionId)
The last time when this session has been accessed |
com.lutris.appserver.server.session.Session |
getSession(java.lang.Thread parm1,
java.lang.String sessionId,
HttpPresentationComms comms)
Returns teh session object corresponding to the HttpPresentationComms |
java.util.Enumeration |
getSessionKeys()
Get all of the active sessions Keys. |
void |
initialize()
|
int |
maxSessionCount()
Gets the maximum number of concurent sessions that existed at any time |
void |
resetMaxSessionCount()
Reset the maximum session count. |
boolean |
sessionExists(java.lang.String sessionId)
Returns true if the session identified by sessionId exists |
void |
shutdown()
NOP |
Methods inherited from class com.lutris.appserver.server.sessionContainerAdapter.ContainerAdapterSessionManager |
---|
createSession, createSession, getEmptySessionPath, getEncodeFirstUrl, getEncodeUrlState, getSession, getSession, getSession, getSession, getSessionKeys, maxSessionCountDate, passivateSession |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JmxContainerAdapterSessionManager(com.lutris.appserver.server.Application application, com.lutris.util.Config config, com.lutris.logging.LogChannel logger) throws com.lutris.appserver.server.session.SessionException
application
- application that uses this session managerconfig
- application's config objectlogger
- ignored
com.lutris.appserver.server.session.SessionException
Method Detail |
---|
public com.lutris.appserver.server.session.Session createSession(HttpPresentationComms comms) throws com.lutris.appserver.server.session.SessionException
createSession
in interface com.lutris.appserver.server.session.SessionManager
createSession
in class ContainerAdapterSessionManager
comms
- HttpPresentationComms that containes the HttpServletRequest
com.lutris.appserver.server.session.SessionException
public com.lutris.appserver.server.session.Session getSession(java.lang.Thread parm1, java.lang.String sessionId, HttpPresentationComms comms) throws com.lutris.appserver.server.session.SessionException
getSession
in interface com.lutris.appserver.server.session.SessionManager
getSession
in class ContainerAdapterSessionManager
parm1
- ignoredsessionId
- ignoredcomms
- HttpPresentationComms object that contains HttpServletRequest from which the session is extracted
com.lutris.appserver.server.session.SessionException
public void deleteSession(com.lutris.appserver.server.session.Session SessionId) throws com.lutris.appserver.server.session.SessionException
deleteSession
in interface com.lutris.appserver.server.session.SessionManager
deleteSession
in class ContainerAdapterSessionManager
com.lutris.appserver.server.session.SessionException
public void deleteSession(java.lang.String SessionId) throws com.lutris.appserver.server.session.SessionException
deleteSession
in interface com.lutris.appserver.server.session.SessionManager
deleteSession
in class ContainerAdapterSessionManager
com.lutris.appserver.server.session.SessionException
public boolean sessionExists(java.lang.String sessionId) throws com.lutris.appserver.server.session.SessionException
sessionExists
in interface com.lutris.appserver.server.session.SessionManager
sessionExists
in class ContainerAdapterSessionManager
sessionId
- the identification of the session
com.lutris.appserver.server.session.SessionException
public java.util.Enumeration getSessionKeys() throws com.lutris.appserver.server.session.SessionException
getSessionKeys
in interface com.lutris.appserver.server.session.SessionManager
getSessionKeys
in class ContainerAdapterSessionManager
com.lutris.appserver.server.session.SessionException
- If the sessions cannot be retrieved.public java.lang.String getLastAccessTime(java.lang.String SessionId) throws com.lutris.appserver.server.session.SessionException
SessionId
- session key
com.lutris.appserver.server.session.SessionException
public void expireSession(java.lang.String SessionId) throws com.lutris.appserver.server.session.SessionException
SessionId
- - session key
com.lutris.appserver.server.session.SessionException
public int maxSessionCount()
maxSessionCount
in interface com.lutris.appserver.server.session.SessionManager
maxSessionCount
in class ContainerAdapterSessionManager
public int expiredSessionCount() throws com.lutris.appserver.server.session.SessionException
com.lutris.appserver.server.session.SessionException
public int activeSessionCount() throws com.lutris.appserver.server.session.SessionException
activeSessionCount
in interface com.lutris.appserver.server.session.SessionManager
activeSessionCount
in class ContainerAdapterSessionManager
com.lutris.appserver.server.session.SessionException
public void resetMaxSessionCount() throws com.lutris.appserver.server.session.SessionException
maxSessionCount()
.
The highwater mark should be reset to the current number of sessions.
resetMaxSessionCount
in interface com.lutris.appserver.server.session.SessionManager
resetMaxSessionCount
in class ContainerAdapterSessionManager
com.lutris.appserver.server.session.SessionException
- if the max session count cannot be reset.public void initialize() throws com.lutris.appserver.server.session.SessionException
com.lutris.appserver.server.session.SessionException
public void shutdown()
ContainerAdapterSessionManager
shutdown
in interface com.lutris.appserver.server.session.SessionManager
shutdown
in class ContainerAdapterSessionManager
|
EAF 7.4 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |