public abstract class ReplicationManagerBase<T extends org.glassfish.ha.store.api.Storeable> extends PersistentManagerBase
| Modifier and Type | Field and Description |
|---|---|
protected Logger |
_logger |
protected org.glassfish.ha.store.api.BackingStore<String,T> |
backingStore |
protected boolean |
disableJreplica |
protected static String |
name |
protected boolean |
relaxCacheVersionSemantics |
protected SessionFactory |
sessionFactory |
invalidatedSessions, 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 |
|---|
ReplicationManagerBase() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
createBackingStore(String persistenceType,
String storeName,
Class<T> metadataClass,
Map<String,Object> vendorMap) |
Session |
createEmptySession()
Get a session from the recycled ones or create a new empty one.
|
Session |
createNewSession() |
void |
doRemove(String id) |
abstract void |
doValveSave(Session session) |
Session |
findSession(String id,
String version)
Finds and returns the session with the given id that also satisfies
the given version requirement.
|
org.glassfish.ha.store.api.BackingStore<String,T> |
getBackingStore() |
abstract String |
getReplicaFromPredictor(String sessionId,
String oldJreplicaValue) |
boolean |
isDisableJreplica() |
boolean |
isRelaxCacheVersionSemantics()
should relax cache version semantics be applied
|
boolean |
isSessionVersioningSupported()
Returns true if this session manager supports session versioning, false
otherwise.
|
void |
removeSessionFromManagerCache(Session session) |
void |
setBackingStore(org.glassfish.ha.store.api.BackingStore<String,T> backingStore) |
void |
setDisableJreplica(boolean disableJreplica) |
void |
setRelaxCacheVersionSemantics(boolean value)
set the relaxCacheVersionSemantics
|
void |
setSessionFactory(SessionFactory sessionFactory) |
addLifecycleListener, addToInvalidatedSessions, backgroundProcess, clearStore, createSession, createSession, findLifecycleListeners, findSession, findSession, getInfo, getMaxActiveSessions, getMaxIdleBackup, getMaxIdleSwap, getMinIdleSwap, getMonitorAttributeValues, getName, getSaveOnRestart, getStore, isLoaded, isSessionIdValid, isStarted, load, processExpires, processInvalidatedSessions, processMaxActiveSwaps, processMaxIdleBackups, processMaxIdleSwaps, processPersistenceChecks, propertyChange, release, remove, remove, removeFromInvalidatedSessions, removeLifecycleListener, removeSuper, setContainer, setMaxActiveSessions, setMaxIdleBackup, setMaxIdleSwap, setMinIdleSwap, setSaveOnRestart, setStarted, setStore, start, stop, superFindSession, swapIn, swapIn, swapOut, unload, writeSessionadd, addPropertyChangeListener, 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, postRequestDispatcherProcess, 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, updateprotected org.glassfish.ha.store.api.BackingStore<String,T extends org.glassfish.ha.store.api.Storeable> backingStore
protected SessionFactory sessionFactory
protected static final String name
protected Logger _logger
protected boolean relaxCacheVersionSemantics
protected boolean disableJreplica
public abstract void createBackingStore(String persistenceType, String storeName, Class<T> metadataClass, Map<String,Object> vendorMap)
public Session createNewSession()
public Session createEmptySession()
ManagerBasecreateEmptySession in interface ManagercreateEmptySession in class ManagerBasepublic void setSessionFactory(SessionFactory sessionFactory)
public void setBackingStore(org.glassfish.ha.store.api.BackingStore<String,T> backingStore)
public void doRemove(String id)
public boolean isSessionVersioningSupported()
ManagerBaseisSessionVersioningSupported in interface ManagerisSessionVersioningSupported in class ManagerBasepublic Session findSession(String id, String version) throws IOException
ManagerBasefindSession in interface ManagerfindSession in class ManagerBaseid - The session id to matchversion - The session version requirement to satisfyIOException - if an IO error occurredpublic boolean isRelaxCacheVersionSemantics()
public void setRelaxCacheVersionSemantics(boolean value)
value - public void removeSessionFromManagerCache(Session session)
public void setDisableJreplica(boolean disableJreplica)
public boolean isDisableJreplica()
public abstract void doValveSave(Session session)
Copyright © 2017. All rights reserved.