org.openspaces.jee.sessions.jetty
Class GigaSessionIdManager
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.openspaces.jee.sessions.jetty.AbstractSessionIdManager
org.openspaces.jee.sessions.jetty.GigaSessionIdManager
- All Implemented Interfaces:
- org.eclipse.jetty.server.SessionIdManager, org.eclipse.jetty.util.component.LifeCycle
public class GigaSessionIdManager
- extends AbstractSessionIdManager
GigaspacesSessionIdManager
A Jetty SessionIDManager where the in-use session ids are stored
in a data grid "cloud".
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle |
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener |
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle |
org.eclipse.jetty.util.component.LifeCycle.Listener |
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle |
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING |
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle |
addLifeCycleListener, doStop, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle |
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
space
protected IJSpace space
GigaSessionIdManager
public GigaSessionIdManager(org.eclipse.jetty.server.Server server)
GigaSessionIdManager
public GigaSessionIdManager(org.eclipse.jetty.server.Server server,
Random random)
setSpace
public void setSpace(IJSpace space)
getSpace
public IJSpace getSpace()
setLease
public void setLease(long lease)
- Sets the lease in seconds of Session Ids written to the Space.
addSession
public void addSession(javax.servlet.http.HttpSession session)
getClusterId
public String getClusterId(String nodeId)
getNodeId
public String getNodeId(String clusterId,
javax.servlet.http.HttpServletRequest request)
idInUse
public boolean idInUse(String id)
invalidateAll
public void invalidateAll(String id)
removeSession
public void removeSession(javax.servlet.http.HttpSession session)
doStart
public void doStart()
- Start up the id manager.
- Overrides:
doStart
in class AbstractSessionIdManager
initSpace
protected void initSpace()
throws Exception
- Throws:
Exception
Copyright © GigaSpaces.