org.openspaces.jee.sessions.jetty
Class GigaSessionIdManager
java.lang.Object
org.mortbay.component.AbstractLifeCycle
org.openspaces.jee.sessions.jetty.AbstractSessionIdManager
org.openspaces.jee.sessions.jetty.GigaSessionIdManager
- All Implemented Interfaces:
- org.mortbay.component.LifeCycle, org.mortbay.jetty.SessionIdManager
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 interface org.mortbay.component.LifeCycle |
org.mortbay.component.LifeCycle.Listener |
Fields inherited from class org.mortbay.component.AbstractLifeCycle |
_listeners |
Methods inherited from class org.mortbay.component.AbstractLifeCycle |
addLifeCycleListener, doStop, 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.mortbay.component.LifeCycle |
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
space
protected IJSpace space
GigaSessionIdManager
public GigaSessionIdManager(org.mortbay.jetty.Server server)
GigaSessionIdManager
public GigaSessionIdManager(org.mortbay.jetty.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.