@Service @PerLookup public class ReplicationWebEventPersistentManager<T extends org.glassfish.ha.store.api.Storeable> extends ReplicationManagerBase<T> implements WebEventPersistentManager
_logger, backingStore, disableJreplica, relaxCacheVersionSemantics, sessionFactoryinvalidatedSessions, lifecyclecontainer, debug, devRandomSource, distributable, domain, duplicates, entropy, expiredSessions, initialized, log, maxActive, maxActiveUpdateLock, maxInactiveInterval, oname, randomClass, randomIS, rb, rejectedSessions, sessionAverageAliveTime, sessionCounter, sessionIdLength, sessionLocker, sessionMaxAliveTime, sessions, support, uuidGeneratorAFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, INIT_EVENT, START_EVENT, STOP_EVENT| Constructor and Description |
|---|
ReplicationWebEventPersistentManager()
Creates a new instance of ReplicationWebEventPersistentManager
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Session session)
Add this Session to the set of active Sessions for this Manager.
|
void |
createBackingStore(String persistenceType,
String storeName,
Class<T> metadataClass,
Map<String,Object> vendorMap) |
void |
doValveSave(Session session)
called from valve; does the save of session
|
String |
getInfo()
Return descriptive information about this Manager implementation and
the corresponding version number, in the format
<description>/<version>. |
String |
getName()
Return the descriptive short name of this Manager implementation.
|
String |
getReplicaFromPredictor(String sessionId,
String oldJreplicaValue) |
void |
postRequestDispatcherProcess(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response) |
protected void |
processMaxActiveSwaps()
Swap idle sessions out to Store if too many are active
Hercules: modified method
|
protected void |
processMaxIdleBackups()
Back up idle sessions.
|
protected void |
processMaxIdleSwaps()
Swap idle sessions out to Store if they are idle too long.
|
createEmptySession, createNewSession, doRemove, findSession, getBackingStore, isDisableJreplica, isRelaxCacheVersionSemantics, isSessionVersioningSupported, removeSessionFromManagerCache, setBackingStore, setDisableJreplica, setRelaxCacheVersionSemantics, setSessionFactoryaddLifecycleListener, addToInvalidatedSessions, backgroundProcess, clearStore, createSession, createSession, findLifecycleListeners, findSession, findSession, getMaxActiveSessions, getMaxIdleBackup, getMaxIdleSwap, getMinIdleSwap, getMonitorAttributeValues, getSaveOnRestart, getStore, isLoaded, isSessionIdValid, isStarted, load, processExpires, processInvalidatedSessions, processPersistenceChecks, propertyChange, release, remove, remove, removeFromInvalidatedSessions, removeLifecycleListener, removeSuper, setContainer, setMaxActiveSessions, setMaxIdleBackup, setMaxIdleSwap, setMinIdleSwap, setSaveOnRestart, setStarted, setStore, start, stop, superFindSession, swapIn, swapIn, swapOut, unload, writeSessionaddPropertyChangeListener, changeSessionId, checkSessionAttribute, clearSessions, destroy, expireSession, findSession, findSessions, generateSessionId, generateSessionId, getActiveSessions, getClassName, getContainer, getDebug, getDistributable, getDomain, getDuplicates, getEngine, getEntropy, getExpiredSessions, getJvmRoute, getLastAccessedTimeMillis, getMaxActive, getMaxInactiveInterval, getMaxInactiveIntervalSeconds, getNewSession, getObjectName, getRandom, getRandomBytes, getRandomClass, getRandomFile, getRejectedSessions, getSessionAttribute, getSessionAverageAliveTime, getSessionAverageAliveTimeSeconds, getSessionCount, getSessionCounter, getSessionIdLength, getSessionMaxAliveTime, getSessionMaxAliveTimeSeconds, getUuidGenerator, init, listSessionIds, lockSession, log, log, preRequestDispatcherProcess, removePropertyChangeListener, resetRandom, setDebug, setDistributable, setDuplicates, setEntropy, setExpiredSessions, setMaxActive, setMaxInactiveInterval, setMaxInactiveIntervalSeconds, setRandomClass, setRandomFile, setRejectedSessions, setSessionAverageAliveTime, setSessionAverageAliveTimeSeconds, setSessionCount, setSessionCounter, setSessionIdLength, setSessionLocker, setSessionMaxAliveTime, setSessionMaxAliveTimeSeconds, setUuidGenerator, toCookie, unlockSession, updatepublic ReplicationWebEventPersistentManager()
public String getInfo()
<description>/<version>.getInfo in interface ManagergetInfo in class PersistentManagerBasepublic void add(Session session)
ManagerBaseadd in interface Manageradd in class ManagerBasesession - Session to be addedpublic void doValveSave(Session session)
doValveSave in interface WebEventPersistentManagerdoValveSave in class ReplicationManagerBase<T extends org.glassfish.ha.store.api.Storeable>session - The session to storepublic void postRequestDispatcherProcess(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
postRequestDispatcherProcess in interface ManagerpostRequestDispatcherProcess in class ManagerBasepublic String getName()
getName in class PersistentManagerBaseprotected void processMaxIdleBackups()
processMaxIdleBackups in class PersistentManagerBaseprotected void processMaxActiveSwaps()
processMaxActiveSwaps in class PersistentManagerBaseprotected void processMaxIdleSwaps()
processMaxIdleSwaps in class PersistentManagerBasepublic String getReplicaFromPredictor(String sessionId, String oldJreplicaValue)
getReplicaFromPredictor in class ReplicationManagerBase<T extends org.glassfish.ha.store.api.Storeable>public void createBackingStore(String persistenceType, String storeName, Class<T> metadataClass, Map<String,Object> vendorMap)
createBackingStore in class ReplicationManagerBase<T extends org.glassfish.ha.store.api.Storeable>Copyright © 2017. All rights reserved.