|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.catalina.session.StoreBase
org.glassfish.web.ha.session.management.HAStoreBase
org.glassfish.web.ha.session.management.ReplicationStore
org.glassfish.web.ha.session.management.ReplicationAttributeStore
public class ReplicationAttributeStore
| Field Summary |
|---|
| Fields inherited from class org.glassfish.web.ha.session.management.HAStoreBase |
|---|
_debug, _logLevel, applicationId, clusterId, ioUtils, serverConfigLookup |
| Fields inherited from class org.apache.catalina.session.StoreBase |
|---|
debug, info, lifecycle, manager, sm, started, storeName, support |
| Fields inherited from interface org.apache.catalina.Lifecycle |
|---|
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, INIT_EVENT, START_EVENT, STOP_EVENT |
| Constructor Summary | |
|---|---|
ReplicationAttributeStore(ServerConfigLookup serverConfigLookup,
JavaEEIOUtils ioUtils)
Creates a new instance of ReplicationAttributeStore |
|
| Method Summary | |
|---|---|
void |
doSave(Session session)
Save the specified Session into this Store. |
void |
doValveSave(Session session)
Save the specified Session into this Store. |
protected java.lang.Object |
getAttributeValue(byte[] state)
Given a byte[] containing session data, return a session object |
protected java.lang.Object |
getAttributeValueCollection(byte[] state)
Given a byte[] containing session data, return a session object |
protected byte[] |
getByteArray(java.lang.Object attributeValue)
Create an byte[] for the session that we can then pass to the HA Store. |
protected byte[] |
getByteArrayFromCollection(java.util.Collection entries)
Create an byte[] for the session that we can then pass to the HA Store. |
Session |
getSession(CompositeMetadata metadata)
|
Session |
load(java.lang.String id)
Load and return the Session associated with the specified session identifier from this Store, without removing it. |
Session |
load(java.lang.String id,
java.lang.String version)
|
protected void |
loadAttributes(ModifiedAttributeHASession modifiedAttributeSession,
java.util.Collection attributeList)
Given a session, load its attributes |
void |
save(Session session)
Save the specified Session into this Store. |
void |
valveSave(Session session)
Save the specified Session into this Store. |
| Methods inherited from class org.glassfish.web.ha.session.management.ReplicationStore |
|---|
clear, doRemove, getApplicationId, getSession, getSize, isReplicationCompressionEnabled, keys, loadFromBackingStore, processExpires, removeExpiredSessions, removeSynchronized, stop, updateLastAccessTime |
| Methods inherited from class org.glassfish.web.ha.session.management.HAStoreBase |
|---|
debug, getByteArray, getByteArray, getClusterId, getClusterIdFromConfig, remove, setLogLevel |
| Methods inherited from class org.apache.catalina.session.StoreBase |
|---|
addLifecycleListener, addPropertyChangeListener, doProcessExpires, findLifecycleListeners, getDebug, getInfo, getManager, getStoreName, log, readSession, removeFromStoreCache, removeLifecycleListener, removePropertyChangeListener, setDebug, setManager, start, writeSession |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReplicationAttributeStore(ServerConfigLookup serverConfigLookup,
JavaEEIOUtils ioUtils)
| Method Detail |
|---|
public void valveSave(Session session)
throws java.io.IOException
valveSave in class ReplicationStoresession - Session to be saved
java.io.IOException - if an input/output error occurs
public void save(Session session)
throws java.io.IOException
save in interface Storesave in class ReplicationStoresession - Session to be saved
java.io.IOException - if an input/output error occurs
public void doValveSave(Session session)
throws java.io.IOException
doValveSave in class ReplicationStoresession - Session to be saved
java.io.IOException - if an input/output error occurs
public void doSave(Session session)
throws java.io.IOException
doSave in class ReplicationStoresession - Session to be saved
java.io.IOException - if an input/output error occurs
public Session load(java.lang.String id)
throws java.lang.ClassNotFoundException,
java.io.IOException
null.
load in interface Storeload in class ReplicationStoreid - Session identifier of the session to load
java.lang.ClassNotFoundException - if a deserialization error occurs
java.io.IOException - if an input/output error occurs
public Session load(java.lang.String id,
java.lang.String version)
throws java.lang.ClassNotFoundException,
java.io.IOException
load in class ReplicationStorejava.lang.ClassNotFoundException
java.io.IOException
public Session getSession(CompositeMetadata metadata)
throws java.io.IOException
java.io.IOException
protected byte[] getByteArray(java.lang.Object attributeValue)
throws java.io.IOException
attributeValue - The attribute value we are serializing
java.io.IOException
protected java.lang.Object getAttributeValue(byte[] state)
throws java.io.IOException,
java.lang.ClassNotFoundException
state - The byte[] with the session attribute data
java.io.IOException
java.lang.ClassNotFoundException
protected byte[] getByteArrayFromCollection(java.util.Collection entries)
throws java.io.IOException
entries - The Collection of entries we are serializing
java.io.IOException
protected java.lang.Object getAttributeValueCollection(byte[] state)
throws java.io.IOException,
java.lang.ClassNotFoundException
state - The byte[] with the session attribute data
java.io.IOException
java.lang.ClassNotFoundException
protected void loadAttributes(ModifiedAttributeHASession modifiedAttributeSession,
java.util.Collection attributeList)
modifiedAttributeSession - The session (header info only) having its attributes loadedattributeList - The List
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||