Package com.tangosol.coherence.servlet
Class MonolithicHttpSessionCollection
- java.lang.Object
-
- com.tangosol.util.Base
-
- com.tangosol.coherence.servlet.AbstractHttpSessionCollection
-
- com.tangosol.coherence.servlet.MonolithicHttpSessionCollection
-
- All Implemented Interfaces:
CoherenceHttpSessionCollection
,HttpSessionCollection
public class MonolithicHttpSessionCollection extends AbstractHttpSessionCollection
An implementation of HttpSessionCollection that manages 'monolithic' session objects. A monolithic session object is one that serializes its attributes all together, as a whole, using a single ObjectOutputStream.The collection uses two configurable named caches to manage its session information in the cluster:
- "session-storage": The cache of clustered session models. This cache should be configured as an unlimited size cache, although it is strongly suggested that it be arranged in a tiered memory/persistent manner by using the overflow map functionality of Coherence, or even using size-limited caching with read-through/write-behind to a database (if sessions should survive a full cluster take-down/restart).
- Version:
- Coherence 2.5
- Author:
- cp 2004.08.16
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.tangosol.coherence.servlet.AbstractHttpSessionCollection
AbstractHttpSessionCollection.ApplicationScopeController, AbstractHttpSessionCollection.DistributedController, AbstractHttpSessionCollection.GlobalScopeController, AbstractHttpSessionCollection.HybridController, AbstractHttpSessionCollection.LocalController
-
Nested classes/interfaces inherited from class com.tangosol.util.Base
Base.LoggingWriter
-
Nested classes/interfaces inherited from interface com.tangosol.coherence.servlet.HttpSessionCollection
HttpSessionCollection.AttributeScopeController, HttpSessionCollection.SessionDistributionController
-
-
Field Summary
-
Fields inherited from class com.tangosol.coherence.servlet.AbstractHttpSessionCollection
CACHENAME_LOCAL_ATTRIBUTES, CACHENAME_LOCAL_SESSIONS, CACHENAME_SESSIONS, CTX_INIT_ENABLE_SESSION_ACCESS_DEBUG_LOGGING, CTX_INIT_SESSION_ACCESS_DEBUG_LOGGING_FILTER, f_mapLocks, SERVICENAME_OWNERSHIP
-
-
Constructor Summary
Constructors Constructor Description MonolithicHttpSessionCollection()
Default constructor (required).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractHttpSessionModel
instantiateModel(javax.servlet.http.HttpSession session, String sId)
Factory Method: Instantiate a AbstractHttpSessionModel or subclass thereof.String
toString()
Returns a string representation of the object.-
Methods inherited from class com.tangosol.coherence.servlet.AbstractHttpSessionCollection
activate, addHttpSessionAttributeListener, addHttpSessionListener, cleanUpDeletedSessions, clearClusterCache, configure, create, create, deleteExpiredLocalSessions, deleteExpiredSessions, deleteModelFromLocalCaches, destroy, destroyLocalAttributesCache, ensureClusterCache, ensureLocalAttributesCache, enter, enter, exit, exit, fireSessionDestroyedListeners, generateSessionId, get, getActiveCache, getAppControlCache, getAverageModelLifetime, getAverageModelSize, getCacheDelegator, getClusterCache, getCollection, getConfig, getCurrentTime, getDefaultMaxInactiveInterval, getDescription, getDistributionController, getHttpSessionAttributeListeners, getHttpSessionCollectionConfiguration, getHttpSessionListeners, getLocalAttributesCache, getLocalCache, getLocalCacheName, getLocalSessionIds, getLocalSessonIdsSnapshot, getMaxModelSize, getMinModelSize, getModel, getModel, getModelDeaths, getModelUpdates, getOwnedCache, getOwnedModel, getScopeController, getSerializer, getSessionAccessDebugLoggingFilter, getSessionExpiryFilter, getSessionIdGenerator, getSessionIdLength, getSessionOwnershipInfo, getStickyCache, getStickyExitTaskCache, getStickyService, isActive, isAllowLocalAttributes, isAppLockingEnforced, isAssumeLocality, isEnableAttributeListenerOptimization, isEnabledSessionAccessDebugLogging, isEnableSuspectAttributes, isExistent, isMemberLockingEnforced, isOwned, isOwnershipSticky, isSessionLockingEnforced, isStrict, isStuck, isThreadLockingEnforced, iterateIds, iteratePotentiallyExpiredIds, iteratePotentiallyExpiredLocalIds, logInvalidationExceptions, obtainAppOwnership, obtainClusterOwnership, obtainThreadOwnership, onModelUpdate, passivate, postCreate, putBlind, recordMapLocksState, releaseAppOwnership, releaseCache, releaseClusterOwnership, releaseStuckSession, releaseThreadOwnership, remapSessionId, removeAllBlind, removeBlind, removeHttpSessionAttributeListener, removeHttpSessionListener, removeMapLocksState, resetStatistics, setCacheDelegator, setConfiguration, setSerializer, shutdown, updateSessionStatitics
-
Methods inherited from class com.tangosol.util.Base
azzert, 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, 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
-
-
-
-
Method Detail
-
toString
public String toString()
Returns a string representation of the object.- Overrides:
toString
in classAbstractHttpSessionCollection
- Returns:
- a string representation of the object
-
instantiateModel
protected AbstractHttpSessionModel instantiateModel(javax.servlet.http.HttpSession session, String sId)
Factory Method: Instantiate a AbstractHttpSessionModel or subclass thereof.- Specified by:
instantiateModel
in classAbstractHttpSessionCollection
- Parameters:
session
- the session that delegates to this modelsId
- the session ID- Returns:
- a new instance of AbstractHttpSessionModel or subclass thereof
-
-