public class GigaSessionManager
extends org.eclipse.jetty.server.session.AbstractSessionManager
| Modifier and Type | Class and Description |
|---|---|
class |
GigaSessionManager.Session
Session
A session in memory of a Context.
|
org.eclipse.jetty.server.session.AbstractSessionManager.CookieConfig, org.eclipse.jetty.server.session.AbstractSessionManager.SessionIforg.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener| Modifier and Type | Field and Description |
|---|---|
protected long |
_savePeriodMs |
protected int |
_scavengeCount |
protected long |
_scavengePeriodMs |
__defaultSessionTrackingModes, __distantFuture, _checkingRemoteSessionIdEncoding, _context, _dftMaxIdleSecs, _httpOnly, _loader, _maxCookieAge, _nodeIdInSessionId, _refreshCookieAge, _secureCookies, _secureRequestOnly, _sessionAttributeListeners, _sessionComment, _sessionCookie, _sessionDomain, _sessionHandler, _sessionIdListeners, _sessionIdManager, _sessionIdPathParameterName, _sessionIdPathParameterNamePrefix, _sessionListeners, _sessionPath, _sessionsStats, _sessionTimeStats, _sessionTrackingModes, MAX_INACTIVE_MINUTESFAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPING__CheckRemoteSessionEncoding, __DefaultSessionCookie, __DefaultSessionDomain, __DefaultSessionIdPathParameterName, __MaxAgeProperty, __SessionCookieProperty, __SessionDomainProperty, __SessionIdPathParameterNameProperty, __SessionPathProperty| Constructor and Description |
|---|
GigaSessionManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSession(org.eclipse.jetty.server.session.AbstractSession abstractSession) |
void |
doStart()
Start the session manager.
|
void |
doStop()
Stop the session manager.
|
int |
getSavePeriod()
How often an actual update of the session will be performed to the Space.
|
int |
getScavengePeriod()
How often the scavenger thread will run in order to check for expired sessions.
|
org.eclipse.jetty.server.session.AbstractSession |
getSession(String idInCluster)
Get a session matching the id.
|
int |
getSessions() |
GigaSpace |
getSpace() |
protected org.eclipse.jetty.server.session.AbstractSession |
newSession(javax.servlet.http.HttpServletRequest request) |
boolean |
removeSession(org.eclipse.jetty.server.session.AbstractSession abstractSession,
boolean invalidate) |
protected boolean |
removeSession(String idInCluster) |
protected void |
scavenge()
Look for expired sessions that we know about in our session map, and double check with the
grid that it has really expired, or already been removed.
|
void |
setCountSessionPeriod(int seconds) |
void |
setLease(long lease)
The lease of the
SessionData that is written to the
Space. |
void |
setSavePeriod(int seconds)
How often an actual update of the session will be performed to the Space.
|
void |
setScavengePeriod(int seconds)
How often the scavenger thread will run in order to check for expired sessions.
|
void |
setSpace(GigaSpace gigaSpace) |
void |
setSpace(IJSpace space) |
void |
setUrlSpaceConfigurer(UrlSpaceConfigurer urlSpaceConfigurer) |
protected void |
shutdownSessions() |
void |
statsReset() |
access, addEventListener, addSession, clearEventListeners, complete, doSessionAttributeListeners, getClusterId, getContext, getContextHandler, getDefaultSessionTrackingModes, getEffectiveSessionTrackingModes, getHttpOnly, getHttpSession, getMaxCookieAge, getMaxInactiveInterval, getMetaManager, getNodeId, getRefreshCookieAge, getSecureCookies, getSessionCookie, getSessionCookie, getSessionCookieConfig, getSessionDomain, getSessionHandler, getSessionIdManager, getSessionIdPathParameterName, getSessionIdPathParameterNamePrefix, getSessionPath, getSessionsMax, getSessionsTotal, getSessionTimeMax, getSessionTimeMean, getSessionTimeStdDev, getSessionTimeTotal, isCheckingRemoteSessionIdEncoding, isNodeIdInSessionId, isSecureRequestOnly, isUsingCookies, isUsingURLs, isValid, newHttpSession, removeEventListener, removeSession, renewSessionId, setCheckingRemoteSessionIdEncoding, setHttpOnly, setMaxInactiveInterval, setNodeIdInSessionId, setRefreshCookieAge, setSecureRequestOnly, setSessionCookie, setSessionHandler, setSessionIdManager, setSessionIdPathParameterName, setSessionTrackingModes, setUsingCookiesaddBean, addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopprotected long _scavengePeriodMs
protected int _scavengeCount
protected long _savePeriodMs
public void doStart()
throws Exception
doStart in class org.eclipse.jetty.server.session.AbstractSessionManagerExceptionpublic void doStop()
throws Exception
doStop in class org.eclipse.jetty.server.session.AbstractSessionManagerExceptionpublic int getSavePeriod()
60 seconds.public void setSavePeriod(int seconds)
60 seconds.public int getScavengePeriod()
60 * 5 seconds (5 minutes).public void setScavengePeriod(int seconds)
60 * 5 seconds (5 minutes).public void setCountSessionPeriod(int seconds)
public void setUrlSpaceConfigurer(UrlSpaceConfigurer urlSpaceConfigurer)
public void setSpace(GigaSpace gigaSpace)
public void setSpace(IJSpace space)
public GigaSpace getSpace()
public void setLease(long lease)
SessionData that is written to the
Space. Set in seconds and defaults to FOREVER.public org.eclipse.jetty.server.session.AbstractSession getSession(String idInCluster)
getSession in class org.eclipse.jetty.server.session.AbstractSessionManagerpublic int getSessions()
getSessions in class org.eclipse.jetty.server.session.AbstractSessionManagerpublic void statsReset()
statsReset in class org.eclipse.jetty.server.session.AbstractSessionManagerprotected void shutdownSessions()
throws Exception
shutdownSessions in class org.eclipse.jetty.server.session.AbstractSessionManagerExceptionprotected org.eclipse.jetty.server.session.AbstractSession newSession(javax.servlet.http.HttpServletRequest request)
newSession in class org.eclipse.jetty.server.session.AbstractSessionManagerprotected boolean removeSession(String idInCluster)
removeSession in class org.eclipse.jetty.server.session.AbstractSessionManagerpublic boolean removeSession(org.eclipse.jetty.server.session.AbstractSession abstractSession,
boolean invalidate)
removeSession in class org.eclipse.jetty.server.session.AbstractSessionManagerprotected void addSession(org.eclipse.jetty.server.session.AbstractSession abstractSession)
addSession in class org.eclipse.jetty.server.session.AbstractSessionManagerprotected void scavenge()
Copyright © GigaSpaces.