public class CarbonTomcatSessionPersistentManager
extends org.apache.catalina.session.PersistentManagerBase
| Modifier and Type | Field and Description |
|---|---|
protected static String |
name
The descriptive name of this Manager implementation (for logging).
|
maxIdleBackup, maxIdleSwap, minIdleSwap, saveOnRestart, storeduplicates, expiredSessions, maxActive, maxActiveSessions, processExpiresFrequency, processingTime, rejectedSessions, secureRandomAlgorithm, secureRandomClass, secureRandomProvider, sessionCounter, sessionCreationTiming, sessionExpirationTiming, sessionIdGenerator, sessionIdGeneratorClass, sessionMaxAliveTime, sessions, sm, support, TIMING_STATS_CACHE_SIZEAFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT| Constructor and Description |
|---|
CarbonTomcatSessionPersistentManager() |
CarbonTomcatSessionPersistentManager(int ownerTenantId) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.catalina.Session |
findSession(String id)
Return the active Session, associated with this Manager, with the specified session id (if any);
otherwise return
null. |
org.apache.catalina.Session[] |
findSessions()
Return the set of active Sessions associated with this Manager.
|
int |
getActiveSessions()
Returns the number of active sessions
|
long |
getExpiredSessions()
Gets the number of sessions that have expired.
|
int |
getMaxActive()
Max number of concurrent active sessions
|
String |
getName()
Return the descriptive short name of this Manager implementation.
|
int |
getRejectedSessions()
Returns the number of session creations that failed due to maxActiveSessions
|
int |
getSessionAverageAliveTime()
Gets the average time (in seconds) that expired sessions had been alive.
|
void |
setOwnerTenantId(int ownerTenantId)
Sets the tenantID of the tenant who owns this Tomcat Session Manager
|
void |
setSessionMaxAliveTime(int sessionMaxAliveTime)
Sets the longest time (in seconds) that an expired session had been alive.
|
clearStore, getActiveSessionsFull, getMaxIdleBackup, getMaxIdleSwap, getMinIdleSwap, getSaveOnRestart, getSessionIdsFull, getStore, isLoaded, load, processExpires, processMaxActiveSwaps, processMaxIdleBackups, processMaxIdleSwaps, processPersistenceChecks, remove, removeSession, removeSuper, setMaxIdleBackup, setMaxIdleSwap, setMinIdleSwap, setSaveOnRestart, setStore, startInternal, stopInternal, swapIn, swapOut, unload, writeSessionadd, addPropertyChangeListener, backgroundProcess, changeSessionId, changeSessionId, changeSessionId, createEmptySession, createSession, expireSession, generateSessionId, getClassName, getContext, getCreationTime, getCreationTimestamp, getDomainInternal, getDuplicates, getEngine, getJvmRoute, getLastAccessedTime, getLastAccessedTimestamp, getMaxActiveSessions, getNewSession, getNotifyAttributeListenerOnUnchangedValue, getNotifyBindingListenerOnUnchangedValue, getObjectNameKeyProperties, getProcessExpiresFrequency, getProcessingTime, getSecureRandomAlgorithm, getSecureRandomClass, getSecureRandomProvider, getSession, getSessionAttribute, getSessionAttributeNameFilter, getSessionAttributeNamePattern, getSessionAttributeValueClassNameFilter, getSessionAttributeValueClassNamePattern, getSessionCounter, getSessionCreateRate, getSessionExpireRate, getSessionIdGenerator, getSessionMaxAliveTime, getThisAccessedTime, getThisAccessedTimestamp, getWarnOnSessionAttributeFilterFailure, initInternal, listSessionIds, remove, removePropertyChangeListener, rotateSessionId, setContext, setDuplicates, setExpiredSessions, setMaxActive, setMaxActiveSessions, setNotifyAttributeListenerOnUnchangedValue, setNotifyBindingListenerOnUnchangedValue, setProcessExpiresFrequency, setProcessingTime, setSecureRandomAlgorithm, setSecureRandomClass, setSecureRandomProvider, setSessionAttributeNameFilter, setSessionAttributeValueClassNameFilter, setSessionCounter, setSessionIdGenerator, setWarnOnSessionAttributeFilterFailure, toString, updateSessionMaxAliveTime, willAttributeDistributedestroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister, unregisterprotected static final String name
public CarbonTomcatSessionPersistentManager()
public CarbonTomcatSessionPersistentManager(int ownerTenantId)
public String getName()
getName in class org.apache.catalina.session.PersistentManagerBasepublic int getMaxActive()
getMaxActive in interface org.apache.catalina.ManagergetMaxActive in class org.apache.catalina.session.ManagerBasepublic int getActiveSessions()
getActiveSessions in interface org.apache.catalina.ManagergetActiveSessions in class org.apache.catalina.session.ManagerBasepublic long getExpiredSessions()
getExpiredSessions in interface org.apache.catalina.ManagergetExpiredSessions in class org.apache.catalina.session.ManagerBasepublic int getRejectedSessions()
getRejectedSessions in interface org.apache.catalina.ManagergetRejectedSessions in class org.apache.catalina.session.ManagerBasepublic void setSessionMaxAliveTime(int sessionMaxAliveTime)
setSessionMaxAliveTime in interface org.apache.catalina.ManagersetSessionMaxAliveTime in class org.apache.catalina.session.ManagerBasesessionMaxAliveTime - sessionMaxAliveTime Longest time (in seconds) that an expired session had been alive.public int getSessionAverageAliveTime()
getSessionAverageAliveTime in interface org.apache.catalina.ManagergetSessionAverageAliveTime in class org.apache.catalina.session.ManagerBasepublic org.apache.catalina.Session[] findSessions()
findSessions in interface org.apache.catalina.ManagerfindSessions in class org.apache.catalina.session.ManagerBasepublic org.apache.catalina.Session findSession(String id) throws IOException
null.findSession in interface org.apache.catalina.ManagerfindSession in class org.apache.catalina.session.PersistentManagerBaseid - The session id for the session to be returnedIOException - if an input/output error occurs while processing this requestIllegalStateException - if a new session cannot be instantiated for any reasonpublic void setOwnerTenantId(int ownerTenantId)
ownerTenantId - Relevant tenantID which is associated to CarbonTomcatSessionPersistentManagerCopyright © 2021 WSO2. All rights reserved.