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.SessionIf
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, _sessionIdManager, _sessionIdPathParameterName, _sessionIdPathParameterNamePrefix, _sessionListeners, _sessionPath, _sessionsStats, _sessionTimeStats, _sessionTrackingModes, SESSION_KNOWN_ONLY_TO_AUTHENTICATED
_listeners, FAILED, RUNNING, STARTED, STARTING, 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.
|
Map |
getSessionMap() |
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) |
void |
resetStats() |
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() |
access, addEventListener, addSession, clearEventListeners, complete, doSessionAttributeListeners, getClusterId, getContext, getContextHandler, getDefaultSessionTrackingModes, getEffectiveSessionTrackingModes, getHttpOnly, getHttpSession, getIdManager, getMaxCookieAge, getMaxInactiveInterval, getMaxSessions, getMetaManager, getMinSessions, getNodeId, getRefreshCookieAge, getSecureCookies, getSessionCookie, getSessionCookie, getSessionCookieConfig, getSessionDomain, getSessionHandler, getSessionIdManager, getSessionIdPathParameterName, getSessionIdPathParameterNamePrefix, getSessionPath, getSessionsMax, getSessionsTotal, getSessionTimeMax, getSessionTimeMean, getSessionTimeStdDev, getSessionTimeTotal, invalidateSessions, isCheckingRemoteSessionIdEncoding, isNodeIdInSessionId, isSecureRequestOnly, isUsingCookies, isUsingURLs, isValid, newHttpSession, removeEventListener, removeSession, renewSession, setCheckingRemoteSessionIdEncoding, setHttpOnly, setIdManager, setMaxInactiveInterval, setNodeIdInSessionId, setRefreshCookieAge, setSecureRequestOnly, setSessionCookie, setSessionHandler, setSessionIdManager, setSessionIdPathParameterName, setSessionTrackingModes, setUsingCookies, statsReset
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
protected long _scavengePeriodMs
protected int _scavengeCount
protected long _savePeriodMs
public void doStart() throws Exception
doStart
in class org.eclipse.jetty.server.session.AbstractSessionManager
Exception
public void doStop() throws Exception
doStop
in class org.eclipse.jetty.server.session.AbstractSessionManager
Exception
public 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.AbstractSessionManager
public Map getSessionMap()
getSessionMap
in class org.eclipse.jetty.server.session.AbstractSessionManager
public int getSessions()
getSessions
in class org.eclipse.jetty.server.session.AbstractSessionManager
public void resetStats()
resetStats
in class org.eclipse.jetty.server.session.AbstractSessionManager
protected org.eclipse.jetty.server.session.AbstractSession newSession(javax.servlet.http.HttpServletRequest request)
newSession
in class org.eclipse.jetty.server.session.AbstractSessionManager
protected boolean removeSession(String idInCluster)
removeSession
in class org.eclipse.jetty.server.session.AbstractSessionManager
public boolean removeSession(org.eclipse.jetty.server.session.AbstractSession abstractSession, boolean invalidate)
protected void addSession(org.eclipse.jetty.server.session.AbstractSession abstractSession)
addSession
in class org.eclipse.jetty.server.session.AbstractSessionManager
protected void scavenge()
Copyright © GigaSpaces.