GigaSpaces XAP 7.0 API

org.openspaces.jee.sessions.jetty
Class GigaSessionIdManager

java.lang.Object
  extended by org.mortbay.component.AbstractLifeCycle
      extended by org.openspaces.jee.sessions.jetty.AbstractSessionIdManager
          extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface org.mortbay.component.LifeCycle
org.mortbay.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.mortbay.component.AbstractLifeCycle
_listeners
 
Constructor Summary
GigaSessionIdManager(org.mortbay.jetty.Server server)
           
GigaSessionIdManager(org.mortbay.jetty.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.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
 

Field Detail

space

protected IJSpace space
Constructor Detail

GigaSessionIdManager

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

GigaSessionIdManager

public GigaSessionIdManager(org.mortbay.jetty.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 7.0 API

Copyright © GigaSpaces.