Class HttpSessionManager
java.lang.Object
com.tangosol.util.Base
com.tangosol.coherence.servlet.management.HttpSessionManager
- All Implemented Interfaces:
- HttpSessionManagerMBean
HttpSessionManagerMBean implementation class.
- Since:
- Coherence 3.1
- Author:
- jh 2005.11.18
- 
Nested Class SummaryNested classes/interfaces inherited from class com.tangosol.util.BaseBase.LoggingWriter
- 
Field SummaryFields inherited from class com.tangosol.util.BaseDEFAULT_LOAD_FACTOR, LOG_ALWAYS, LOG_CONFIG, LOG_DEBUG, LOG_ERR, LOG_INFO, LOG_MAX, LOG_MIN, LOG_QUIET, LOG_WARN, POWER_0, POWER_G, POWER_K, POWER_M, POWER_T, UNIT_D, UNIT_H, UNIT_M, UNIT_MS, UNIT_NS, UNIT_S, UNIT_USFields inherited from interface com.tangosol.coherence.servlet.management.HttpSessionManagerMBeanOBJECT_TYPE
- 
Constructor SummaryConstructorsConstructorDescriptionHttpSessionManager(SessionHelper helper, SessionReaperStatistics reaperStatistics) Create a new HttpSessionManager object.
- 
Method SummaryModifier and TypeMethodDescriptionvoidRemoves the stored configuration which is used to check configuration consistency.protected AbstractHttpSessionCollectionReturn the AbstractHttpSessionCollection currently in use.longGets the average reap duration since the statistics was reset.longGets the average number of reaped sessions in a reap cycle since the statistics was reset.longReturn the average number of milliseconds reap tasks wait in the queue prior to running.Return the fully qualified class name of theHttpSessionCollectionimplementation in use.Return the fully qualified class name of theSessionHelperFactoryimplementation in use.Return the start time for the last reap cycle.longReturn the time in milliseconds it took for the last reap cycle to finish.longReturn the time the last reap task spent in the queue prior to running.Return the name of the local cache that stores non-distributed session attributes or null if local session attribute storage is disabled.intReturn the number of non-distributed session attributes stored in the local session attribute cache or -1 if local session attribute storage is disabled.Return the name of the local cache that stores non-distributed sessions or null if local session storage is disabled.intReturn the number of non-distributed sessions stored in the local session cache or -1 if local session storage is disabled.longGets the maximum reap duration since the statistics was reset.longGets the maximum number of sessions reaped in a reap cycle since the statistics was reset.longReturn the max time in milliseconds a reap task has spent in the queue prior to running since the statistics were last reset.Returns the time for the next reap cycle.intReturn the average size (in bytes) of the session attributes stored in the "overflow" clustered cache since the last time statistics were reset or -1 if aSplitHttpSessionCollectionis not in use.Return the name of the clustered cache that stores the "large attributes" that exceed a certain size and thus are determined to be more efficiently managed as separate cache entries and not as part of the serialized session object itself.intReturn the maximum size (in bytes) of a session attribute stored in the "overflow" clustered cache since the last time statistics were reset or -1 if aSplitHttpSessionCollectionis not in use.intReturn the minimum length (in bytes) that the serialized form of an attribute value must be in order for that attribute value to be stored in the separate "overflow" cache that is reserved for large attributes.intReturn the number of updates to session attributes stored in the "overflow" clustered cache since the last time statistics were reset or -1 if aSplitHttpSessionCollectionis not in use.longReturns the number of expired sessions that were reaped in the last reap cycle.longReturns the number of expired sessions that has been reaped since the statistics was reset.Return the name of the clustered cache that stores ServletContext attributes or null if the ServletContext is not clustered.Return the name of the web application ServletContext.intReturn the average lifetime (in seconds) of session objects invalidated (either due to expiration or to an explicit invalidation) since the last time statistics were reset.intReturn the average size (in bytes) of session objects placed in the session storage clustered cache since the last time statistics were reset.Return the name of the clustered cache that stores serialized session objects.protected SessionHelperFactoryReturn the SessionHelper.Factory currently in use.protected SessionHelperReturn the SessionHelper used by this HttpSessionManager object to expose Coherence*Web management attributes and operations.intReturn the length (in characters) of generated session IDs.intReturn the maximum size (in bytes) of a session object placed in the session storage clustered cache since the last time statistics were reset.intReturn the minimum size (in bytes) of a session object placed in the session storage clustered cache since the last time statistics were reset.intReturn the number of session objects that are pinned to this instance of the web application or -1 if sticky session optimizations are disabled.intReturn the session expiration time (in seconds) or -1 if sessions never expire.intReturn the number of updates of session object stored in the session storage clustered cache since the last time statistics were reset.protected SplitHttpSessionCollectionReturn the SplitHttpSessionCollection currently in use.voidReset the session management statistics.toString()Returns a string representation of the object.Methods inherited from class com.tangosol.util.Baseazzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getProcessRandom, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mergeArray, mergeBooleanArray, mergeByteArray, mergeCharArray, mergeDoubleArray, mergeFloatArray, mergeIntArray, mergeLongArray, mod, mod, newHashMap, newHashMap, newHashSet, newHashSet, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, wait
- 
Constructor Details- 
HttpSessionManagerCreate a new HttpSessionManager object.- Parameters:
- helper- the SessionHelper for the web application in which Coherence*Web is installed
- reaperStatistics- the reaper statistics
 
 
- 
- 
Method Details- 
getAverageReapQueueWaitDurationpublic long getAverageReapQueueWaitDuration()Return the average number of milliseconds reap tasks wait in the queue prior to running.- Specified by:
- getAverageReapQueueWaitDurationin interface- HttpSessionManagerMBean
- Returns:
- the average number of milliseconds reap tasks wait in the queue.
 
- 
getAverageReapDurationpublic long getAverageReapDuration()Gets the average reap duration since the statistics was reset.- Specified by:
- getAverageReapDurationin interface- HttpSessionManagerMBean
- Returns:
- The average reap duration.
 
- 
getAverageReapedSessionspublic long getAverageReapedSessions()Gets the average number of reaped sessions in a reap cycle since the statistics was reset.- Specified by:
- getAverageReapedSessionsin interface- HttpSessionManagerMBean
- Returns:
- The average number of reaped sessions.
 
- 
getCollectionClassNameReturn the fully qualified class name of theHttpSessionCollectionimplementation in use.- Specified by:
- getCollectionClassNamein interface- HttpSessionManagerMBean
- Returns:
- the value of the CollectionClassName attribute
 
- 
getFactoryClassNameReturn the fully qualified class name of theSessionHelperFactoryimplementation in use.- Specified by:
- getFactoryClassNamein interface- HttpSessionManagerMBean
- Returns:
- the value of the FactoryClassName attribute
 
- 
getLastReapDurationpublic long getLastReapDuration()Return the time in milliseconds it took for the last reap cycle to finish.- Specified by:
- getLastReapDurationin interface- HttpSessionManagerMBean
- Returns:
- the value of the LastReapDuration attribute
 
- 
getLastReapQueueWaitDurationpublic long getLastReapQueueWaitDuration()Return the time the last reap task spent in the queue prior to running.- Specified by:
- getLastReapQueueWaitDurationin interface- HttpSessionManagerMBean
- Returns:
- the time the last reap task spent in the queue prior to running.
 
- 
getLastReapCycleReturn the start time for the last reap cycle.- Specified by:
- getLastReapCyclein interface- HttpSessionManagerMBean
- Returns:
- the value of the LastReapTime attribute
 
- 
getLocalAttributeCacheNameReturn the name of the local cache that stores non-distributed session attributes or null if local session attribute storage is disabled.- Specified by:
- getLocalAttributeCacheNamein interface- HttpSessionManagerMBean
- Returns:
- the value of the LocalAttributeCacheName attribute
 
- 
getLocalAttributeCountpublic int getLocalAttributeCount()Return the number of non-distributed session attributes stored in the local session attribute cache or -1 if local session attribute storage is disabled.- Specified by:
- getLocalAttributeCountin interface- HttpSessionManagerMBean
- Returns:
- the value of the LocalAttributeCount attribute
- See Also:
 
- 
getLocalSessionCacheNameReturn the name of the local cache that stores non-distributed sessions or null if local session storage is disabled.- Specified by:
- getLocalSessionCacheNamein interface- HttpSessionManagerMBean
- Returns:
- the value of the LocalSessionCacheName attribute
 
- 
getLocalSessionCountpublic int getLocalSessionCount()Return the number of non-distributed sessions stored in the local session cache or -1 if local session storage is disabled.- Specified by:
- getLocalSessionCountin interface- HttpSessionManagerMBean
- Returns:
- the value of the LocalSessionCount attribute
- See Also:
 
- 
getMaxReapDurationpublic long getMaxReapDuration()Gets the maximum reap duration since the statistics was reset.- Specified by:
- getMaxReapDurationin interface- HttpSessionManagerMBean
- Returns:
- The max reap duration.
 
- 
getMaxReapQueueWaitDurationpublic long getMaxReapQueueWaitDuration()Return the max time in milliseconds a reap task has spent in the queue prior to running since the statistics were last reset.- Specified by:
- getMaxReapQueueWaitDurationin interface- HttpSessionManagerMBean
- Returns:
- the max time in milliseconds a reap task has spent in the queue prior to running since the statistics were last reset
 
- 
getMaxReapedSessionspublic long getMaxReapedSessions()Gets the maximum number of sessions reaped in a reap cycle since the statistics was reset.- Specified by:
- getMaxReapedSessionsin interface- HttpSessionManagerMBean
- Returns:
- The max number of sessions reaped.
 
- 
getNextReapCycleReturns the time for the next reap cycle.- Specified by:
- getNextReapCyclein interface- HttpSessionManagerMBean
- Returns:
- the time for the next reap cycle
 
- 
getOverflowAverageSizepublic int getOverflowAverageSize()Return the average size (in bytes) of the session attributes stored in the "overflow" clustered cache since the last time statistics were reset or -1 if aSplitHttpSessionCollectionis not in use.- Specified by:
- getOverflowAverageSizein interface- HttpSessionManagerMBean
- Returns:
- the value of the OverflowAverageSize attribute
- See Also:
 
- 
getOverflowCacheNameReturn the name of the clustered cache that stores the "large attributes" that exceed a certain size and thus are determined to be more efficiently managed as separate cache entries and not as part of the serialized session object itself.If a SplitHttpSessionCollectionis not in use, null is returned.- Specified by:
- getOverflowCacheNamein interface- HttpSessionManagerMBean
- Returns:
- the value of the OverflowCacheName attribute
- See Also:
 
- 
getOverflowMaxSizepublic int getOverflowMaxSize()Return the maximum size (in bytes) of a session attribute stored in the "overflow" clustered cache since the last time statistics were reset or -1 if aSplitHttpSessionCollectionis not in use.- Specified by:
- getOverflowMaxSizein interface- HttpSessionManagerMBean
- Returns:
- the value of the OverflowMaxSize attribute
- See Also:
 
- 
getOverflowThresholdpublic int getOverflowThreshold()Return the minimum length (in bytes) that the serialized form of an attribute value must be in order for that attribute value to be stored in the separate "overflow" cache that is reserved for large attributes.If a SplitHttpSessionCollectionis not in use, -1 is returned.- Specified by:
- getOverflowThresholdin interface- HttpSessionManagerMBean
- Returns:
- the value of the OverflowThreshold attribute
- See Also:
 
- 
getOverflowUpdatespublic int getOverflowUpdates()Return the number of updates to session attributes stored in the "overflow" clustered cache since the last time statistics were reset or -1 if aSplitHttpSessionCollectionis not in use.- Specified by:
- getOverflowUpdatesin interface- HttpSessionManagerMBean
- Returns:
- the value of the OverflowUpdates attribute
- See Also:
 
- 
getReapedSessionspublic long getReapedSessions()Returns the number of expired sessions that were reaped in the last reap cycle.- Specified by:
- getReapedSessionsin interface- HttpSessionManagerMBean
- Returns:
- the value of the ReapedSessions attribute
 
- 
getReapedSessionsTotalpublic long getReapedSessionsTotal()Returns the number of expired sessions that has been reaped since the statistics was reset.- Specified by:
- getReapedSessionsTotalin interface- HttpSessionManagerMBean
- Returns:
- the value of the ReapedSessionsTotal attribute
 
- 
getSessionAverageLifetimepublic int getSessionAverageLifetime()Return the average lifetime (in seconds) of session objects invalidated (either due to expiration or to an explicit invalidation) since the last time statistics were reset.- Specified by:
- getSessionAverageLifetimein interface- HttpSessionManagerMBean
- Returns:
- the value of the SessionAverageLifetime attribute
 
- 
getSessionAverageSizepublic int getSessionAverageSize()Return the average size (in bytes) of session objects placed in the session storage clustered cache since the last time statistics were reset.- Specified by:
- getSessionAverageSizein interface- HttpSessionManagerMBean
- Returns:
- the value of the SessionAverageSize attribute
 
- 
getSessionCacheNameReturn the name of the clustered cache that stores serialized session objects.- Specified by:
- getSessionCacheNamein interface- HttpSessionManagerMBean
- Returns:
- the value of the SessionCacheName attribute
 
- 
getSessionIdLengthpublic int getSessionIdLength()Return the length (in characters) of generated session IDs.- Specified by:
- getSessionIdLengthin interface- HttpSessionManagerMBean
- Returns:
- the value of the SessionIdLength attribute
 
- 
getSessionMaxSizepublic int getSessionMaxSize()Return the maximum size (in bytes) of a session object placed in the session storage clustered cache since the last time statistics were reset.- Specified by:
- getSessionMaxSizein interface- HttpSessionManagerMBean
- Returns:
- the value of the SessionMaxSize attribute
 
- 
getSessionMinSizepublic int getSessionMinSize()Return the minimum size (in bytes) of a session object placed in the session storage clustered cache since the last time statistics were reset.- Specified by:
- getSessionMinSizein interface- HttpSessionManagerMBean
- Returns:
- the value of the SessionMinSize attribute
 
- 
getSessionStickyCountpublic int getSessionStickyCount()Return the number of session objects that are pinned to this instance of the web application or -1 if sticky session optimizations are disabled.- Specified by:
- getSessionStickyCountin interface- HttpSessionManagerMBean
- Returns:
- the value of the SessionStickyCount attribute
 
- 
getSessionTimeoutpublic int getSessionTimeout()Return the session expiration time (in seconds) or -1 if sessions never expire.- Specified by:
- getSessionTimeoutin interface- HttpSessionManagerMBean
- Returns:
- the value of the SessionTimeout attribute
 
- 
getSessionUpdatespublic int getSessionUpdates()Return the number of updates of session object stored in the session storage clustered cache since the last time statistics were reset.- Specified by:
- getSessionUpdatesin interface- HttpSessionManagerMBean
- Returns:
- the value of the SessionUpdates attribute
 
- 
getServletContextCacheNameReturn the name of the clustered cache that stores ServletContext attributes or null if the ServletContext is not clustered.- Specified by:
- getServletContextCacheNamein interface- HttpSessionManagerMBean
- Returns:
- the value of the ServletContextCacheName attribute
 
- 
getServletContextNameReturn the name of the web application ServletContext.- Specified by:
- getServletContextNamein interface- HttpSessionManagerMBean
- Returns:
- the value of the ServletContextName attribute
 
- 
resetStatisticspublic void resetStatistics()Reset the session management statistics.- Specified by:
- resetStatisticsin interface- HttpSessionManagerMBean
 
- 
clearStoredConfigurationpublic void clearStoredConfiguration()Removes the stored configuration which is used to check configuration consistency.- Specified by:
- clearStoredConfigurationin interface- HttpSessionManagerMBean
 
- 
getSessionHelperReturn the SessionHelper used by this HttpSessionManager object to expose Coherence*Web management attributes and operations.- Returns:
- the SessionHelper used by this HttpSessionManager
 
- 
getSessionFactoryReturn the SessionHelper.Factory currently in use.- Returns:
- the SessionHelper.Factory or null if one could not be retrieved
 
- 
getAbstractHttpSessionCollectionReturn the AbstractHttpSessionCollection currently in use.- Returns:
- the AbstractHttpSessionCollection or null if one could not be retrieved
 
- 
getSplitHttpSessionCollectionReturn the SplitHttpSessionCollection currently in use.- Returns:
- the SplitHttpSessionCollection or null if one could not be retrieved
 
- 
toStringReturns a string representation of the object.
 
-