|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.tangosol.util.Base com.tangosol.coherence.servlet.AbstractHttpSessionCollection com.tangosol.coherence.servlet.TraditionalHttpSessionCollection com.tangosol.coherence.servlet.SplitHttpSessionCollection
public class SplitHttpSessionCollection
An implementation of HttpSessionCollection that manages session objects as multiple units, splitting out larger session attributes into separately managed entries.
The collection uses three configurable named caches to manage its session information in the cluster:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.tangosol.coherence.servlet.AbstractHttpSessionCollection |
---|
AbstractHttpSessionCollection.ExitAgent, AbstractHttpSessionCollection.ExitObserver, AbstractHttpSessionCollection.SimpleDistributedController, AbstractHttpSessionCollection.SimpleHybridController, AbstractHttpSessionCollection.SimpleLocalController |
Nested classes/interfaces inherited from interface com.tangosol.coherence.servlet.HttpSessionCollection |
---|
HttpSessionCollection.SessionDistributionController |
Field Summary | |
---|---|
static String |
CACHENAME_OVERFLOW
The name of the clustered cache that stores the attributes that are too large to store as part of the session objects. |
static String |
CTX_INIT_ATTR_OVERFLOW_THRESHOLD
The configuration property for the "split" model that overrides the length that attributes must be below to be stored inside a session ("embedded") or above which they will be stored in the separated "overflow" cache ("external"). |
static String |
CTX_INIT_CACHENAME_OVERFLOW
The configuration property that overrides the name of the clustered cache that stores the "overflowing" (split-out due to size) session attributes. |
Constructor Summary | |
---|---|
SplitHttpSessionCollection()
Default constructor (required). |
Method Summary | |
---|---|
int |
getAverageExternalAttributeSize()
Calculate the average size (in bytes) of the session attributes stored in the external attribute cache since the last time statistics were reset. |
NamedCache |
getExternalAttributeCache()
Obtain the cache used to store the large session attributes. |
int |
getExternalAttributeUpdates()
Return the number of updates to session attributes stored in the external attribute cache since the last time statistics were reset. |
int |
getMaxExternalAttributeSize()
Return the maximum size (in bytes) of a session attribute stored in the external attribute cache since the last time statistics were reset. |
int |
getMinExternalAttributeSize()
Determine the minimum size of an attribute such that it is considered "large" and will be stored in a separate "external" or "overflow" cache. |
protected AbstractHttpSessionModel |
instantiateModel(HttpSession session,
String sId)
Factory Method: Instantiate a AbstractHttpSessionModel or subclass thereof. |
protected void |
onExternalAttributeUpdate(int cb)
Notify the session collection that an attribute of the specified size (in bytes) was updated in the external attribute cache. |
void |
resetStatistics()
Reset all statistics maintained by this session collection. |
void |
setConfig(XmlElement xml)
Specify the configuration for the object. |
void |
shutdown()
Notify the session collection that it is being shut down. |
String |
toString()
Returns a string representation of the object. |
Field Detail |
---|
public static final String CTX_INIT_CACHENAME_OVERFLOW
public static final String CTX_INIT_ATTR_OVERFLOW_THRESHOLD
public static final String CACHENAME_OVERFLOW
Constructor Detail |
---|
public SplitHttpSessionCollection()
Method Detail |
---|
public void shutdown()
shutdown
in interface HttpSessionCollection
shutdown
in class AbstractHttpSessionCollection
public void setConfig(XmlElement xml)
setConfig
in interface XmlConfigurable
setConfig
in class AbstractHttpSessionCollection
xml
- the XML configuration for the object
IllegalStateException
- if the object is not in a state that
allows the configuration to be set; for example, if the
object has already been configured and cannot be reconfiguredpublic int getMinExternalAttributeSize()
public NamedCache getExternalAttributeCache()
public String toString()
toString
in class TraditionalHttpSessionCollection
protected AbstractHttpSessionModel instantiateModel(HttpSession session, String sId)
instantiateModel
in class TraditionalHttpSessionCollection
session
- the session that delegates to this modelsId
- the session ID
public int getAverageExternalAttributeSize()
public int getMaxExternalAttributeSize()
public int getExternalAttributeUpdates()
public void resetStatistics()
resetStatistics
in class AbstractHttpSessionCollection
protected void onExternalAttributeUpdate(int cb)
cb
- the size (in bytes) of the external attribute
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |