CoherenceTM v3.4.2
Copyright© 2000-2009 by Oracle Corporation

com.tangosol.coherence.servlet
Class TraditionalHttpSessionCollection

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.coherence.servlet.AbstractHttpSessionCollection
          extended by com.tangosol.coherence.servlet.TraditionalHttpSessionCollection
All Implemented Interfaces:
HttpSessionCollection, XmlConfigurable
Direct Known Subclasses:
SplitHttpSessionCollection

public class TraditionalHttpSessionCollection
extends AbstractHttpSessionCollection

An implementation of HttpSessionCollection that manages session objects as individual units that contain all of their own attributes, as if the session were a single serializable object, however with some optimizations for attribute serialization and deserialization.

The collection uses two configurable named caches to manage its session information in the cluster:

Version:
Coherence 2.3
Author:
cp 2003.08.20

Nested Class Summary
 
Nested classes/interfaces inherited from class com.tangosol.coherence.servlet.AbstractHttpSessionCollection
AbstractHttpSessionCollection.ApplicationScopeController, AbstractHttpSessionCollection.DistributedController, AbstractHttpSessionCollection.ExitAgent, AbstractHttpSessionCollection.ExitObserver, AbstractHttpSessionCollection.GlobalScopeController, AbstractHttpSessionCollection.HybridController, AbstractHttpSessionCollection.LocalController
 
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_DEATHCERTS, CACHENAME_LOCAL_ATTRIBUTES, CACHENAME_LOCAL_SESSIONS, CACHENAME_SESSIONS, CTX_INIT_ALLOW_LOCAL_ATTRIBUTES, CTX_INIT_APPLICATION_NAME, CTX_INIT_CACHENAME_DEATHCERTS, CTX_INIT_CACHENAME_LOCAL_ATTRIBUTES, CTX_INIT_CACHENAME_LOCAL_SESSIONS, CTX_INIT_CACHENAME_SESSIONS, CTX_INIT_DAEMON_ASSUME_LOCALITY, CTX_INIT_DIST_CONTROLLER_CLASS, CTX_INIT_SCOPE_CONTROLLER_CLASS, CTX_INIT_SERVICENAME_OWNERSHIP, CTX_INIT_SESSION_EXPIRE_SECS, CTX_INIT_SESSION_ID_LENGTH, CTX_INIT_SESSION_MEMBER_LOCK, CTX_INIT_SESSION_STICKY, CTX_INIT_SESSION_STRICT_SPEC, CTX_INIT_SESSION_THREAD_LOCK, SERVICENAME_OWNERSHIP
 
Constructor Summary
TraditionalHttpSessionCollection()
          Default constructor (required).
 
Method Summary
protected  AbstractHttpSessionModel instantiateModel(javax.servlet.http.HttpSession session, java.lang.String sId)
          Factory Method: Instantiate a AbstractHttpSessionModel or subclass thereof.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class com.tangosol.coherence.servlet.AbstractHttpSessionCollection
activate, addHttpSessionAttributeListener, addHttpSessionListener, create, destroy, destroyLocalAttributesCache, ensureLocalAttributesCache, ensureSerializer, enter, exit, flush, generateSessionId, get, getAverageModelLifetime, getAverageModelSize, getClusterCache, getCollection, getConfig, getCurrentTime, getDeathCertCache, getDefaultMaxInactiveInterval, getDescription, getDistributionController, getHttpSessionAttributeListeners, getHttpSessionListeners, getLocalAttributesCache, getLocalCache, getMaxModelSize, getMinModelSize, getModel, getModelDeaths, getModelUpdates, getOwnedCache, getOwnedModel, getScopeController, getSessionIdLength, getSessionOwnershipInfo, getStickyCache, getStickyService, isActive, isAllowLocalAttributes, isAssumeLocality, isExistent, isMemberLockingEnforced, isOwned, isOwnershipSticky, isStrict, isStuck, isThreadLockingEnforced, iterateIds, iterateLocalIds, obtainClusterOwnership, onModelUpdate, passivate, postCreate, putBlind, releaseCache, releaseClusterOwnership, releaseStuckSession, removeBlind, removeHttpSessionAttributeListener, removeHttpSessionListener, resetStatistics, setConfig, shutdown
 

Constructor Detail

TraditionalHttpSessionCollection

public TraditionalHttpSessionCollection()
Default constructor (required).

Method Detail

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class AbstractHttpSessionCollection
Returns:
a string representation of the object

instantiateModel

protected AbstractHttpSessionModel instantiateModel(javax.servlet.http.HttpSession session,
                                                    java.lang.String sId)
Factory Method: Instantiate a AbstractHttpSessionModel or subclass thereof.

Specified by:
instantiateModel in class AbstractHttpSessionCollection
Parameters:
session - the session that delegates to this model
sId - the session ID
Returns:
a new instance of AbstractHttpSessionModel or subclass thereof

CoherenceTM v3.4.2
Copyright© 2000-2009 by Oracle Corporation