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, store
container, distributable, duplicates, expiredSessions, maxActive, maxActiveSessions, maxInactiveInterval, processExpiresFrequency, processingTime, rejectedSessions, secureRandomAlgorithm, secureRandomClass, secureRandomProvider, SESSION_ID_LENGTH_UNSET, sessionCounter, sessionCreationTiming, sessionExpirationTiming, sessionIdGenerator, sessionIdGeneratorClass, sessionIdLength, sessionMaxAliveTime, sessions, sm, support, TIMING_STATS_CACHE_SIZE
AFTER_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.
|
String |
getInfo()
Return descriptive information about this Manager implementation and
the corresponding version number, in the format
description/version . |
int |
getMaxActive()
Max number of concurrent active sessions
|
int |
getMaxInactiveInterval()
Return the default maximum inactive interval (in seconds) for Sessions created by this Manager.
|
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, writeSession
add, addPropertyChangeListener, backgroundProcess, changeSessionId, createEmptySession, createSession, expireSession, generateSessionId, getClassName, getContainer, getCreationTime, getCreationTimestamp, getDistributable, getDomainInternal, getDuplicates, getEngine, getJvmRoute, getLastAccessedTime, getLastAccessedTimestamp, getMaxActiveSessions, getNewSession, getObjectNameKeyProperties, getProcessExpiresFrequency, getProcessingTime, getSecureRandomAlgorithm, getSecureRandomClass, getSecureRandomProvider, getSession, getSessionAttribute, getSessionAttributeNameFilter, getSessionAttributeNamePattern, getSessionAttributeValueClassNameFilter, getSessionAttributeValueClassNamePattern, getSessionCounter, getSessionCreateRate, getSessionExpireRate, getSessionIdGenerator, getSessionIdLength, getSessionMaxAliveTime, getThisAccessedTime, getThisAccessedTimestamp, getWarnOnSessionAttributeFilterFailure, initInternal, listSessionIds, remove, removePropertyChangeListener, setContainer, setDistributable, setDuplicates, setExpiredSessions, setMaxActive, setMaxActiveSessions, setMaxInactiveInterval, setProcessExpiresFrequency, setProcessingTime, setSecureRandomAlgorithm, setSecureRandomClass, setSecureRandomProvider, setSessionAttributeNameFilter, setSessionAttributeValueClassNameFilter, setSessionCounter, setSessionIdGenerator, setSessionIdLength, setWarnOnSessionAttributeFilterFailure, toString, updateSessionMaxAliveTime, willAttributeDistribute
destroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister
protected static final String name
public CarbonTomcatSessionPersistentManager()
public CarbonTomcatSessionPersistentManager(int ownerTenantId)
public String getInfo()
description/version
.getInfo
in interface org.apache.catalina.Manager
getInfo
in class org.apache.catalina.session.PersistentManagerBase
public String getName()
getName
in class org.apache.catalina.session.PersistentManagerBase
public int getMaxActive()
getMaxActive
in interface org.apache.catalina.Manager
getMaxActive
in class org.apache.catalina.session.ManagerBase
public int getActiveSessions()
getActiveSessions
in interface org.apache.catalina.Manager
getActiveSessions
in class org.apache.catalina.session.ManagerBase
public long getExpiredSessions()
getExpiredSessions
in interface org.apache.catalina.Manager
getExpiredSessions
in class org.apache.catalina.session.ManagerBase
public int getRejectedSessions()
getRejectedSessions
in interface org.apache.catalina.Manager
getRejectedSessions
in class org.apache.catalina.session.ManagerBase
public int getMaxInactiveInterval()
getMaxInactiveInterval
in interface org.apache.catalina.Manager
getMaxInactiveInterval
in class org.apache.catalina.session.ManagerBase
public void setSessionMaxAliveTime(int sessionMaxAliveTime)
setSessionMaxAliveTime
in interface org.apache.catalina.Manager
setSessionMaxAliveTime
in class org.apache.catalina.session.ManagerBase
sessionMaxAliveTime
- sessionMaxAliveTime Longest time (in seconds) that an expired session had been alive.public int getSessionAverageAliveTime()
getSessionAverageAliveTime
in interface org.apache.catalina.Manager
getSessionAverageAliveTime
in class org.apache.catalina.session.ManagerBase
public org.apache.catalina.Session[] findSessions()
findSessions
in interface org.apache.catalina.Manager
findSessions
in class org.apache.catalina.session.ManagerBase
public org.apache.catalina.Session findSession(String id) throws IOException
null
.findSession
in interface org.apache.catalina.Manager
findSession
in class org.apache.catalina.session.PersistentManagerBase
id
- 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 © 2018 WSO2. All rights reserved.