|
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.Objectcom.tangosol.util.Base
com.tangosol.coherence.servlet.AbstractHttpSessionModel
com.tangosol.coherence.servlet.MonolithicHttpSessionModel
public class MonolithicHttpSessionModel
This is an implementation of HttpSessionModel that manages its attribute state in a single ('monolithic') serializable unit, allowing session attributes to safely form graphs while avoiding duplication of objects, yet not being able to optimize attribute serialization and deserialization as a result.
Note that the Externalizable implementation on this class is just there to throw exceptions that this class is not Serializable or Externalizable. Use ExternalizableLite instead.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.tangosol.coherence.servlet.AbstractHttpSessionModel |
|---|
AbstractHttpSessionModel.AttributeHolder |
| Field Summary |
|---|
| Fields inherited from class com.tangosol.coherence.servlet.AbstractHttpSessionModel |
|---|
ENTRY_ARRAY, STRING_ARRAY |
| Constructor Summary | |
|---|---|
MonolithicHttpSessionModel()
Default constructor for deserialization. |
|
MonolithicHttpSessionModel(MonolithicHttpSessionCollection collection,
HttpSession session,
String sId)
Session creation constructor. |
|
| Method Summary | |
|---|---|
protected Map |
ensureAttributeSerializationFailureMap()
Ensure that the map of attributes that cannot be written exists, creating it if necessary, and return it. |
protected void |
enterWriteAttributes()
Specify that the attributes are now being written. |
protected Map |
getAttributeSerializationFailureMap()
Get the map of attributes that cannot be written. |
protected boolean |
isWritingAttributes()
Determine if the attributes are currently being written. |
protected void |
leaveWriteAttributes()
Specify that the attributes are no longer being written. |
protected void |
logAttributeSerializationFailure(AbstractHttpSessionModel.AttributeHolder holder,
Throwable e)
Log a serialization failure for an attribute holder. |
protected void |
readAttributes(DataInput in)
Helper to read the session attributes from a stream. |
protected void |
setAttributeSerializationFailureMap(Map mapFailures)
Set the map of attributes that cannot be written. |
String |
toString()
Returns a string representation of the object. |
protected void |
writeAttributes(DataOutput out)
Helper to write the session attributes to a stream. |
| Methods inherited from interface java.io.Externalizable |
|---|
readExternal, writeExternal |
| Methods inherited from interface com.tangosol.io.ExternalizableLite |
|---|
readExternal, writeExternal |
| Constructor Detail |
|---|
public MonolithicHttpSessionModel()
public MonolithicHttpSessionModel(MonolithicHttpSessionCollection collection,
HttpSession session,
String sId)
collection - the collection that manages this modelsession - the session that delegates to this modelsId - the session ID| Method Detail |
|---|
protected void readAttributes(DataInput in)
throws IOException
readAttributes in class AbstractHttpSessionModelin - the stream to read data from in order to restore the object
IOException - if an I/O exception occurs
protected void writeAttributes(DataOutput out)
throws IOException
writeAttributes in class AbstractHttpSessionModelout - the stream to write the object to
IOException - if an I/O exception occursprotected void enterWriteAttributes()
protected void leaveWriteAttributes()
protected boolean isWritingAttributes()
writeAttributes(java.io.DataOutput) processing is occurringprotected Map getAttributeSerializationFailureMap()
protected void setAttributeSerializationFailureMap(Map mapFailures)
protected Map ensureAttributeSerializationFailureMap()
protected void logAttributeSerializationFailure(AbstractHttpSessionModel.AttributeHolder holder,
Throwable e)
logAttributeSerializationFailure in class AbstractHttpSessionModelholder - the attribute holder that failed to serialize its valuee - the throwable object that resulted from the serialization failurepublic String toString()
toString in class AbstractHttpSessionModel
|
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 | |||||||