public class ReplicationAttributeStore extends ReplicationStore
_debug, _logLevel, applicationId, clusterId, ioUtilsdebug, info, lifecycle, manager, started, storeName, supportAFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, INIT_EVENT, START_EVENT, STOP_EVENT| Constructor and Description |
|---|
ReplicationAttributeStore(JavaEEIOUtils ioUtils)
Creates a new instance of ReplicationAttributeStore
|
| Modifier and Type | Method and Description |
|---|---|
void |
doSave(Session session)
Save the specified Session into this Store.
|
void |
doValveSave(Session session)
Save the specified Session into this Store.
|
protected Object |
getAttributeValue(byte[] state)
Given a byte[] containing session data, return a session
object
|
protected Object |
getAttributeValueCollection(byte[] state)
Given a byte[] containing session data, return a session
object
|
protected byte[] |
getByteArray(Object attributeValue)
Create an byte[] for the session that we can then pass to
the HA Store.
|
protected byte[] |
getByteArrayFromCollection(Collection entries)
Create an byte[] for the session that we can then pass to
the HA Store.
|
Session |
getSession(CompositeMetadata metadata) |
Session |
load(String id,
String version)
Load and return the Session associated with the specified session
identifier from this Store, without removing it.
|
protected void |
loadAttributes(ModifiedAttributeHASession modifiedAttributeSession,
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.
|
cleanup, clear, doRemove, getApplicationId, getSession, getSessions, getSize, getUniqueId, isReplicationCompressionEnabled, keys, load, processExpires, removeExpiredSessions, removeSynchronized, setSessions, stop, updateLastAccessTimedebug, getByteArray, getByteArray, getClusterId, getClusterIdFromConfig, remove, setLogLeveladdLifecycleListener, addPropertyChangeListener, doProcessExpires, findLifecycleListeners, getDebug, getInfo, getManager, getStoreName, log, readSession, removeFromStoreCache, removeLifecycleListener, removePropertyChangeListener, setDebug, setManager, start, writeSessionpublic ReplicationAttributeStore(JavaEEIOUtils ioUtils)
public void valveSave(Session session) throws IOException
valveSave in class ReplicationStoresession - Session to be savedIOException - if an input/output error occurspublic void save(Session session) throws IOException
save in interface Storesave in class ReplicationStoresession - Session to be savedIOException - if an input/output error occurspublic void doValveSave(Session session) throws IOException
doValveSave in class ReplicationStoresession - Session to be savedIOException - if an input/output error occurspublic void doSave(Session session) throws IOException
doSave in class ReplicationStoresession - Session to be savedIOException - if an input/output error occurspublic Session load(String id, String version) throws ClassNotFoundException, IOException
StoreBasenull.load in class ReplicationStoreid - Session identifier of the session to loadversion - The requested session versionClassNotFoundException - if a deserialization error occursIOException - if an input/output error occurspublic Session getSession(CompositeMetadata metadata) throws IOException
IOExceptionprotected byte[] getByteArray(Object attributeValue) throws IOException
attributeValue - The attribute value we are serializingIOExceptionprotected Object getAttributeValue(byte[] state) throws IOException, ClassNotFoundException
state - The byte[] with the session attribute dataIOExceptionClassNotFoundExceptionprotected byte[] getByteArrayFromCollection(Collection entries) throws IOException
entries - The Collection of entries we are serializingIOExceptionprotected Object getAttributeValueCollection(byte[] state) throws IOException, ClassNotFoundException
state - The byte[] with the session attribute dataIOExceptionClassNotFoundExceptionprotected void loadAttributes(ModifiedAttributeHASession modifiedAttributeSession, Collection attributeList)
modifiedAttributeSession - The session (header info only) having its attributes loadedattributeList - The ListCopyright © 2017. All rights reserved.