VMware GemFire Java API Reference
Class DeltaSessionManager<CommitSessionValveT extends AbstractCommitSessionValve<?>>
- java.lang.Object
-
- org.apache.catalina.util.LifecycleBase
-
- org.apache.catalina.util.LifecycleMBeanBase
-
- org.apache.catalina.session.ManagerBase
-
- org.apache.geode.modules.session.catalina.DeltaSessionManager<CommitSessionValveT>
-
- All Implemented Interfaces:
MBeanRegistration,org.apache.catalina.JmxEnabled,org.apache.catalina.Lifecycle,org.apache.catalina.Manager,SessionManager
- Direct Known Subclasses:
Tomcat10DeltaSessionManager,Tomcat8DeltaSessionManager,Tomcat9DeltaSessionManager
public abstract class DeltaSessionManager<CommitSessionValveT extends AbstractCommitSessionValve<?>> extends org.apache.catalina.session.ManagerBase implements org.apache.catalina.Lifecycle, SessionManager
-
-
Field Summary
Fields Modifier and Type Field Description protected StringnameThe name of thisManagerprotected StringregionNameprotected AtomicBooleanstartedHas thisManagerbeen started?-
Fields inherited from class org.apache.catalina.session.ManagerBase
duplicates, expiredSessions, maxActive, processExpiresFrequency, processingTime, secureRandomAlgorithm, secureRandomClass, secureRandomProvider, sessionCounter, sessionCreationTiming, sessionExpirationTiming, sessionIdGenerator, sessionIdGeneratorClass, sessionMaxAliveTime, sessions, sm, support, TIMING_STATS_CACHE_SIZE
-
Fields inherited from interface org.apache.catalina.Lifecycle
AFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
-
-
Constructor Summary
Constructors Constructor Description DeltaSessionManager()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidadd(org.apache.catalina.Session session)protected voidcancelTimer()protected abstract CommitSessionValveTcreateCommitSessionValve()org.apache.catalina.SessionfindSession(String id)intgetActiveSessions()Returns the number of active sessionsbooleangetEnableDebugListener()booleangetEnableGatewayDeltaReplication()booleangetEnableGatewayReplication()booleangetEnableLocalCache()org.apache.juli.logging.LoggetLogger()intgetMaxActiveSessions()intgetMaxInactiveInterval()protected org.apache.catalina.session.StandardSessiongetNewSession()booleangetPreferDeserializedForm()Deprecated.No replacement.StringgetRegionAttributesId()StringgetRegionName()intgetRejectedSessions()SessionCachegetSessionCache()protected Set<String>getSessionsToTouch()org.apache.geode.modules.session.catalina.internal.DeltaSessionStatisticsgetStatistics()StringgetStatisticsName()protected voidinitializeSessionCache()booleanisBackingCacheAvailable()booleanisClientServer()booleanisCommitValveEnabled()booleanisCommitValveFailfastEnabled()StringlistSessionIds()For debugging: return a list of all session ids currently activevoidload()protected voidregisterCommitSessionValve()protected voidregisterJvmRouteBinderValve()voidremove(org.apache.catalina.Session session)protected voidscheduleTimerTasks()voidsetEnableCommitValve(boolean enable)voidsetEnableCommitValveFailfast(boolean enable)voidsetEnableDebugListener(boolean enableDebugListener)voidsetEnableGatewayDeltaReplication(boolean enableGatewayDeltaReplication)voidsetEnableGatewayReplication(boolean enableGatewayReplication)voidsetEnableLocalCache(boolean enableLocalCache)voidsetMaxActiveSessions(int maxActiveSessions)voidsetPreferDeserializedForm(boolean enable)Deprecated.No replacement.voidsetRegionAttributesId(String regionType)voidsetRegionName(String regionName)StringtoString()voidunload()protected voidunregisterCommitSessionValve()protected voidunregisterJvmRouteBinderValve()-
Methods inherited from class org.apache.catalina.session.ManagerBase
addPropertyChangeListener, backgroundProcess, changeSessionId, changeSessionId, changeSessionId, createEmptySession, createSession, expireSession, findSessions, generateSessionId, getClassName, getContext, getCreationTime, getCreationTimestamp, getDomainInternal, getDuplicates, getEngine, getExpiredSessions, getJvmRoute, getLastAccessedTime, getLastAccessedTimestamp, getMaxActive, getName, getObjectNameKeyProperties, getPersistAuthentication, getPersistAuthenticationNotes, getProcessExpiresFrequency, getProcessingTime, getSecureRandomAlgorithm, getSecureRandomClass, getSecureRandomProvider, getSession, getSessionAttribute, getSessionAttributeNameFilter, getSessionAttributeNamePattern, getSessionAttributeValueClassNameFilter, getSessionAttributeValueClassNamePattern, getSessionAverageAliveTime, getSessionCounter, getSessionCreateRate, getSessionExpireRate, getSessionIdGenerator, getSessionMaxAliveTime, getThisAccessedTime, getThisAccessedTimestamp, getWarnOnSessionAttributeFilterFailure, initInternal, processExpires, remove, removePropertyChangeListener, rotateSessionId, setContext, setDuplicates, setExpiredSessions, setMaxActive, setPersistAuthentication, setPersistAuthenticationNotes, setProcessExpiresFrequency, setProcessingTime, setSecureRandomAlgorithm, setSecureRandomClass, setSecureRandomProvider, setSessionAttributeNameFilter, setSessionAttributeValueClassNameFilter, setSessionCounter, setSessionIdGenerator, setSessionMaxAliveTime, setWarnOnSessionAttributeFilterFailure, startInternal, stopInternal, updateSessionMaxAliveTime, willAttributeDistribute
-
Methods inherited from class org.apache.catalina.util.LifecycleMBeanBase
destroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister
-
Methods inherited from class org.apache.catalina.util.LifecycleBase
addLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, getThrowOnFailure, init, removeLifecycleListener, setState, setState, setThrowOnFailure, start, stop
-
-
-
-
Field Detail
-
started
protected AtomicBoolean started
Has thisManagerbeen started?
-
name
protected String name
The name of thisManager
-
regionName
protected String regionName
-
-
Method Detail
-
getRegionName
public String getRegionName()
- Specified by:
getRegionNamein interfaceSessionManager
-
setRegionName
public void setRegionName(String regionName)
-
getMaxInactiveInterval
public int getMaxInactiveInterval()
- Specified by:
getMaxInactiveIntervalin interfaceSessionManager
-
getRegionAttributesId
public String getRegionAttributesId()
- Specified by:
getRegionAttributesIdin interfaceSessionManager
-
setRegionAttributesId
public void setRegionAttributesId(String regionType)
-
getEnableLocalCache
public boolean getEnableLocalCache()
- Specified by:
getEnableLocalCachein interfaceSessionManager
-
setEnableLocalCache
public void setEnableLocalCache(boolean enableLocalCache)
-
getMaxActiveSessions
public int getMaxActiveSessions()
- Overrides:
getMaxActiveSessionsin classorg.apache.catalina.session.ManagerBase
-
setMaxActiveSessions
public void setMaxActiveSessions(int maxActiveSessions)
- Overrides:
setMaxActiveSessionsin classorg.apache.catalina.session.ManagerBase
-
getEnableGatewayDeltaReplication
public boolean getEnableGatewayDeltaReplication()
- Specified by:
getEnableGatewayDeltaReplicationin interfaceSessionManager
-
setEnableGatewayDeltaReplication
public void setEnableGatewayDeltaReplication(boolean enableGatewayDeltaReplication)
-
getEnableGatewayReplication
public boolean getEnableGatewayReplication()
- Specified by:
getEnableGatewayReplicationin interfaceSessionManager
-
setEnableGatewayReplication
public void setEnableGatewayReplication(boolean enableGatewayReplication)
-
getEnableDebugListener
public boolean getEnableDebugListener()
- Specified by:
getEnableDebugListenerin interfaceSessionManager
-
setEnableDebugListener
public void setEnableDebugListener(boolean enableDebugListener)
-
isCommitValveEnabled
public boolean isCommitValveEnabled()
- Specified by:
isCommitValveEnabledin interfaceSessionManager
-
setEnableCommitValve
public void setEnableCommitValve(boolean enable)
-
isCommitValveFailfastEnabled
public boolean isCommitValveFailfastEnabled()
- Specified by:
isCommitValveFailfastEnabledin interfaceSessionManager
-
setEnableCommitValveFailfast
public void setEnableCommitValveFailfast(boolean enable)
-
isBackingCacheAvailable
public boolean isBackingCacheAvailable()
- Specified by:
isBackingCacheAvailablein interfaceSessionManager
-
setPreferDeserializedForm
@Deprecated public void setPreferDeserializedForm(boolean enable)
Deprecated.No replacement. Always prefer deserialized form.
-
getPreferDeserializedForm
@Deprecated public boolean getPreferDeserializedForm()
Deprecated.No replacement. Always prefer deserialized form.- Specified by:
getPreferDeserializedFormin interfaceSessionManager- Returns:
- whether to prefer deserialized form
-
getStatisticsName
public String getStatisticsName()
- Specified by:
getStatisticsNamein interfaceSessionManager
-
getLogger
public org.apache.juli.logging.Log getLogger()
- Specified by:
getLoggerin interfaceSessionManager
-
getSessionCache
public SessionCache getSessionCache()
-
getStatistics
public org.apache.geode.modules.session.catalina.internal.DeltaSessionStatistics getStatistics()
-
isClientServer
public boolean isClientServer()
-
findSession
public org.apache.catalina.Session findSession(String id)
- Specified by:
findSessionin interfaceorg.apache.catalina.Manager- Overrides:
findSessionin classorg.apache.catalina.session.ManagerBase
-
initializeSessionCache
protected void initializeSessionCache()
-
getNewSession
protected org.apache.catalina.session.StandardSession getNewSession()
- Overrides:
getNewSessionin classorg.apache.catalina.session.ManagerBase
-
remove
public void remove(org.apache.catalina.Session session)
- Specified by:
removein interfaceorg.apache.catalina.Manager- Overrides:
removein classorg.apache.catalina.session.ManagerBase
-
add
public void add(org.apache.catalina.Session session)
- Specified by:
addin interfaceorg.apache.catalina.Manager- Overrides:
addin classorg.apache.catalina.session.ManagerBase
-
getRejectedSessions
public int getRejectedSessions()
- Specified by:
getRejectedSessionsin interfaceorg.apache.catalina.Manager- Overrides:
getRejectedSessionsin classorg.apache.catalina.session.ManagerBase
-
getActiveSessions
public int getActiveSessions()
Returns the number of active sessions- Specified by:
getActiveSessionsin interfaceorg.apache.catalina.Manager- Overrides:
getActiveSessionsin classorg.apache.catalina.session.ManagerBase- Returns:
- number of sessions active
-
listSessionIds
public String listSessionIds()
For debugging: return a list of all session ids currently active- Overrides:
listSessionIdsin classorg.apache.catalina.session.ManagerBase
-
scheduleTimerTasks
protected void scheduleTimerTasks()
-
cancelTimer
protected void cancelTimer()
-
load
public void load() throws ClassNotFoundException, IOException- Specified by:
loadin interfaceorg.apache.catalina.Manager- Throws:
ClassNotFoundExceptionIOException
-
unload
public void unload() throws IOException- Specified by:
unloadin interfaceorg.apache.catalina.Manager- Throws:
IOException
-
registerJvmRouteBinderValve
protected void registerJvmRouteBinderValve()
-
unregisterJvmRouteBinderValve
protected void unregisterJvmRouteBinderValve()
-
registerCommitSessionValve
protected void registerCommitSessionValve()
-
createCommitSessionValve
protected abstract CommitSessionValveT createCommitSessionValve()
-
unregisterCommitSessionValve
protected void unregisterCommitSessionValve()
-
toString
public String toString()
- Overrides:
toStringin classorg.apache.catalina.session.ManagerBase
-
-