GigaSpaces XAP 9.7.2 API

org.openspaces.jee.sessions.jetty
Class GigaSessionIdManager

java.lang.Object
  extended by org.eclipse.jetty.util.component.AbstractLifeCycle
      extended by org.openspaces.jee.sessions.jetty.AbstractSessionIdManager
          extended by 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 Class Summary
 
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
 
Field Summary
protected  IJSpace space
           
 
Fields inherited from class org.openspaces.jee.sessions.jetty.AbstractSessionIdManager
_random, _server, _weakRandom, _workerName, SESSION_ID_RANDOM_ALGORITHM, SESSION_ID_RANDOM_ALGORITHM_ALT
 
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
Constructor Summary
GigaSessionIdManager(org.eclipse.jetty.server.Server server)
           
GigaSessionIdManager(org.eclipse.jetty.server.Server server, Random random)
           
 
Method Summary
 void addSession(javax.servlet.http.HttpSession session)
           
 void doStart()
          Start up the id manager.
 String getClusterId(String nodeId)
           
 String getNodeId(String clusterId, javax.servlet.http.HttpServletRequest request)
           
 IJSpace getSpace()
           
 boolean idInUse(String id)
           
protected  void initSpace()
           
 void invalidateAll(String id)
           
 void removeSession(javax.servlet.http.HttpSession session)
           
 void setLease(long lease)
          Sets the lease in seconds of Session Ids written to the Space.
 void setSpace(IJSpace space)
           
 
Methods inherited from class org.openspaces.jee.sessions.jetty.AbstractSessionIdManager
getRandom, getWorkerName, initRandom, newSessionId, setRandom, setWorkerName
 
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
 

Field Detail

space

protected IJSpace space
Constructor Detail

GigaSessionIdManager

public GigaSessionIdManager(org.eclipse.jetty.server.Server server)

GigaSessionIdManager

public GigaSessionIdManager(org.eclipse.jetty.server.Server server,
                            Random random)
Method Detail

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

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.