public class DeltaSession extends org.apache.catalina.session.StandardSession implements org.apache.geode.DataSerializable, org.apache.geode.Delta, GatewayDelta, org.apache.geode.internal.cache.lru.Sizeable, DeltaSessionInterface
accessCount, ACTIVITY_CHECK, attributes, authType, creationTime, EMPTY_ARRAY, excludedAttributes, expiring, facade, id, info, isNew, isValid, lastAccessedTime, listeners, manager, maxInactiveInterval, NOT_SERIALIZED, notes, principal, sessionContext, sm, support, thisAccessedTimeGATEWAY_DELTA_REGION_NAME| Constructor and Description |
|---|
DeltaSession()
Construct a new
Session associated with no Manager. |
DeltaSession(org.apache.catalina.Manager manager)
Construct a new Session associated with the specified Manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
void |
applyAttributeEvents(org.apache.geode.cache.Region<java.lang.String,DeltaSessionInterface> region,
java.util.List<DeltaSessionAttributeEvent> events) |
void |
commit() |
void |
expire(boolean notify) |
void |
fromData(java.io.DataInput in) |
void |
fromDelta(java.io.DataInput in) |
java.lang.Object |
getAttribute(java.lang.String name) |
java.lang.String |
getContextName() |
GatewayDeltaEvent |
getCurrentGatewayDeltaEvent() |
boolean |
getExpired() |
protected org.apache.geode.cache.Region<java.lang.String,javax.servlet.http.HttpSession> |
getOperatingRegion() |
java.security.Principal |
getPrincipal() |
protected java.util.Map<java.lang.String,byte[]> |
getSerializedAttributes() |
javax.servlet.http.HttpSession |
getSession()
Return the
HttpSession for which this object is the facade. |
int |
getSizeInBytes() |
boolean |
hasDelta() |
void |
invalidate() |
boolean |
isCommitEnabled() |
void |
localDestroyAttribute(java.lang.String name) |
void |
localUpdateAttribute(java.lang.String name,
java.lang.Object value) |
void |
processExpired() |
protected java.util.Map |
readInAttributes(java.io.DataInput in) |
void |
removeAttribute(java.lang.String name,
boolean notify) |
protected byte[] |
serialize(java.lang.Object obj) |
void |
setAttribute(java.lang.String name,
java.lang.Object value,
boolean notify) |
void |
setCurrentGatewayDeltaEvent(GatewayDeltaEvent currentGatewayDeltaEvent) |
void |
setMaxInactiveInterval(int interval) |
void |
setOwner(java.lang.Object manager) |
void |
setPrincipal(java.security.Principal principal) |
void |
toData(java.io.DataOutput out) |
void |
toDelta(java.io.DataOutput out) |
java.lang.String |
toString() |
access, activate, addSessionListener, endAccess, exclude, expire, fireContainerEvent, fireSessionEvent, getAttributeNames, getAuthType, getCreationTime, getId, getIdInternal, getInfo, getLastAccessedTime, getLastAccessedTimeInternal, getManager, getMaxInactiveInterval, getNote, getNoteNames, getServletContext, getSessionContext, getValue, getValueNames, isAttributeDistributable, isNew, isValid, isValidInternal, keys, passivate, putValue, readObject, readObjectData, recycle, removeAttribute, removeAttributeInternal, removeNote, removeSessionListener, removeValue, setAttribute, setAuthType, setCreationTime, setId, setId, setManager, setNew, setNote, setValid, tellNew, writeObject, writeObjectDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitactivate, isValidaccess, addSessionListener, endAccess, expire, getAuthType, getCreationTime, getId, getIdInternal, getInfo, getLastAccessedTime, getLastAccessedTimeInternal, getManager, getMaxInactiveInterval, getNote, getNoteNames, recycle, removeNote, removeSessionListener, setAuthType, setCreationTime, setId, setId, setManager, setNew, setNote, setValidpublic DeltaSession()
Session associated with no Manager. The
Manager will be assigned later using setOwner(Object).public DeltaSession(org.apache.catalina.Manager manager)
manager - The manager with which this Session is associatedpublic javax.servlet.http.HttpSession getSession()
HttpSession for which this object is the facade.getSession in interface org.apache.catalina.SessiongetSession in class org.apache.catalina.session.StandardSessionpublic java.security.Principal getPrincipal()
getPrincipal in interface org.apache.catalina.SessiongetPrincipal in class org.apache.catalina.session.StandardSessionpublic void setPrincipal(java.security.Principal principal)
setPrincipal in interface org.apache.catalina.SessionsetPrincipal in class org.apache.catalina.session.StandardSessionprotected org.apache.geode.cache.Region<java.lang.String,javax.servlet.http.HttpSession> getOperatingRegion()
public boolean isCommitEnabled()
public GatewayDeltaEvent getCurrentGatewayDeltaEvent()
getCurrentGatewayDeltaEvent in interface GatewayDeltapublic void setCurrentGatewayDeltaEvent(GatewayDeltaEvent currentGatewayDeltaEvent)
setCurrentGatewayDeltaEvent in interface GatewayDeltapublic void setOwner(java.lang.Object manager)
setOwner in interface DeltaSessionInterfacepublic void setAttribute(java.lang.String name,
java.lang.Object value,
boolean notify)
setAttribute in class org.apache.catalina.session.StandardSessionpublic void removeAttribute(java.lang.String name,
boolean notify)
removeAttribute in class org.apache.catalina.session.StandardSessionpublic java.lang.Object getAttribute(java.lang.String name)
getAttribute in interface javax.servlet.http.HttpSessiongetAttribute in class org.apache.catalina.session.StandardSessionpublic void invalidate()
invalidate in interface javax.servlet.http.HttpSessioninvalidate in class org.apache.catalina.session.StandardSessionpublic void processExpired()
processExpired in interface DeltaSessionInterfacepublic void expire(boolean notify)
expire in class org.apache.catalina.session.StandardSessionpublic void setMaxInactiveInterval(int interval)
setMaxInactiveInterval in interface javax.servlet.http.HttpSessionsetMaxInactiveInterval in interface org.apache.catalina.SessionsetMaxInactiveInterval in class org.apache.catalina.session.StandardSessionpublic void localUpdateAttribute(java.lang.String name,
java.lang.Object value)
localUpdateAttribute in interface DeltaSessionInterfacepublic void localDestroyAttribute(java.lang.String name)
localDestroyAttribute in interface DeltaSessionInterfacepublic void applyAttributeEvents(org.apache.geode.cache.Region<java.lang.String,DeltaSessionInterface> region, java.util.List<DeltaSessionAttributeEvent> events)
applyAttributeEvents in interface DeltaSessionInterfacepublic void commit()
commit in interface DeltaSessionInterfacepublic void abort()
abort in interface DeltaSessionInterfacepublic boolean getExpired()
getExpired in interface DeltaSessionInterfacepublic java.lang.String getContextName()
getContextName in interface DeltaSessionInterfacepublic boolean hasDelta()
hasDelta in interface org.apache.geode.Deltapublic void toDelta(java.io.DataOutput out)
throws java.io.IOException
toDelta in interface org.apache.geode.Deltajava.io.IOExceptionpublic void fromDelta(java.io.DataInput in)
throws java.io.IOException,
org.apache.geode.InvalidDeltaException
fromDelta in interface org.apache.geode.Deltajava.io.IOExceptionorg.apache.geode.InvalidDeltaExceptionpublic void toData(java.io.DataOutput out)
throws java.io.IOException
toData in interface org.apache.geode.DataSerializabletoData in interface DeltaSessionInterfacejava.io.IOExceptionpublic void fromData(java.io.DataInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
fromData in interface org.apache.geode.DataSerializablefromData in interface DeltaSessionInterfacejava.io.IOExceptionjava.lang.ClassNotFoundExceptionprotected java.util.Map readInAttributes(java.io.DataInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic int getSizeInBytes()
getSizeInBytes in interface org.apache.geode.internal.cache.lru.Sizeableprotected java.util.Map<java.lang.String,byte[]> getSerializedAttributes()
protected byte[] serialize(java.lang.Object obj)
public java.lang.String toString()
toString in class org.apache.catalina.session.StandardSession