public class MongoSessionManager extends NoSqlSessionManager
| Modifier and Type | Class and Description |
|---|---|
protected class |
MongoSessionManager.ClassLoadingObjectInputStream
ClassLoadingObjectInputStream
|
AbstractSessionManager.SessionIfAbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.Listener| Modifier and Type | Field and Description |
|---|---|
static String |
__ACCESSED |
static String |
__ID |
static String |
__INVALIDATED |
static String |
__VALID |
static String |
__VERSION |
__defaultSessionTrackingModes, __distantFuture, _checkingRemoteSessionIdEncoding, _context, _dftMaxIdleSecs, _httpOnly, _loader, _maxCookieAge, _nodeIdInSessionId, _refreshCookieAge, _secureCookies, _secureRequestOnly, _sessionAttributeListeners, _sessionComment, _sessionCookie, _sessionDomain, _sessionHandler, _sessionIdManager, _sessionIdPathParameterName, _sessionIdPathParameterNamePrefix, _sessionListeners, _sessionPath, _sessionsStats, _sessionTimeStats, _sessionTrackingModes_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING__CheckRemoteSessionEncoding, __DefaultSessionCookie, __DefaultSessionDomain, __DefaultSessionIdPathParameterName, __MaxAgeProperty, __SessionCookieProperty, __SessionDomainProperty, __SessionIdPathParameterNameProperty, __SessionPathProperty| Constructor and Description |
|---|
MongoSessionManager() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
decodeName(String name) |
protected Object |
decodeValue(Object valueToDecode) |
void |
doStart() |
protected Object |
encodeName(Object value) |
protected String |
encodeName(String name) |
long |
getSessionStoreCount()
returns the total number of session objects in the session store
the count() operation itself is optimized to perform on the server side
and avoid loading to client side.
|
protected void |
invalidateSession(String idInCluster) |
protected NoSqlSession |
loadSession(String clusterId) |
void |
purge() |
void |
purgeFully() |
protected Object |
refresh(NoSqlSession session,
Object version) |
protected boolean |
remove(NoSqlSession session) |
protected Object |
save(NoSqlSession session,
Object version,
boolean activateAfterSave) |
void |
scavenge() |
void |
scavengeFully() |
void |
setSessionIdManager(SessionIdManager metaManager) |
addSession, getIdlePeriod, getSavePeriod, getSession, getStalePeriod, invalidateSessions, isInvalidateOnStop, isSaveAllAttributes, newSession, removeSession, setIdlePeriod, setInvalidateOnStop, setSaveAllAttributes, setSavePeriod, setStalePeriodaccess, addEventListener, addSession, clearEventListeners, complete, doSessionAttributeListeners, doStop, getClusterId, getContext, getContextHandler, getDefaultSessionTrackingModes, getEffectiveSessionTrackingModes, getHttpOnly, getHttpSession, getIdManager, getMaxInactiveInterval, getMaxSessions, getMetaManager, getMinSessions, getNodeId, getRefreshCookieAge, getSecureCookies, getSessionCookie, getSessionCookie, getSessionCookieConfig, getSessionDomain, getSessionHandler, getSessionIdManager, getSessionIdPathParameterName, getSessionIdPathParameterNamePrefix, getSessionMap, getSessions, getSessionsMax, getSessionsTotal, getSessionTimeMax, getSessionTimeMean, getSessionTimeStdDev, getSessionTimeTotal, isCheckingRemoteSessionIdEncoding, isNodeIdInSessionId, isSecureRequestOnly, isUsingCookies, isUsingURLs, isValid, newHttpSession, removeEventListener, removeSession, removeSession, resetStats, setCheckingRemoteSessionIdEncoding, setHttpOnly, setIdManager, setMaxInactiveInterval, setNodeIdInSessionId, setRefreshCookieAge, setSecureRequestOnly, setSessionCookie, setSessionHandler, setSessionIdPathParameterName, setSessionTrackingModes, setUsingCookies, statsResetaddLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccess, addEventListener, clearEventListeners, complete, getClusterId, getDefaultSessionTrackingModes, getEffectiveSessionTrackingModes, getHttpOnly, getHttpSession, getMaxInactiveInterval, getMetaManager, getNodeId, getSessionCookie, getSessionCookieConfig, getSessionIdManager, getSessionIdPathParameterName, getSessionIdPathParameterNamePrefix, isCheckingRemoteSessionIdEncoding, isUsingCookies, isUsingURLs, isValid, newHttpSession, removeEventListener, setCheckingRemoteSessionIdEncoding, setMaxInactiveInterval, setSessionHandler, setSessionIdPathParameterName, setSessionTrackingModesaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic static final String __ID
public static final String __VALID
public static final String __INVALIDATED
public static final String __ACCESSED
public static final String __VERSION
public MongoSessionManager()
throws UnknownHostException,
com.mongodb.MongoException
UnknownHostExceptioncom.mongodb.MongoExceptionpublic void doStart()
throws Exception
doStart in class NoSqlSessionManagerExceptionpublic void setSessionIdManager(SessionIdManager metaManager)
setSessionIdManager in interface SessionManagersetSessionIdManager in class AbstractSessionManagerprotected Object save(NoSqlSession session, Object version, boolean activateAfterSave)
save in class NoSqlSessionManagerprotected Object refresh(NoSqlSession session, Object version)
refresh in class NoSqlSessionManagerprotected NoSqlSession loadSession(String clusterId)
loadSession in class NoSqlSessionManagerprotected boolean remove(NoSqlSession session)
remove in class NoSqlSessionManagerprotected void invalidateSession(String idInCluster)
invalidateSession in class NoSqlSessionManagerprotected Object encodeName(Object value) throws IOException
IOExceptionprotected Object decodeValue(Object valueToDecode) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic void purge()
public void purgeFully()
public void scavenge()
public void scavengeFully()
public long getSessionStoreCount()
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.