|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.web.tomcat.tc5.session.JBossManager (src) org.jboss.web.tomcat.tc5.session.JBossCacheManager
Implementation of a clustered session manager for catalina using JBossCache replication.
Field Summary | |
protected TransactionManager (src) |
tm
The transaction manager. |
protected boolean |
useJK_
If set to true, will add a JvmRouteFilter to the request. |
Fields inherited from class org.jboss.web.tomcat.tc5.session.JBossManager (src) |
activeCounter_, container_, createdCounter_, distributable_, expiredCounter_, invalidateSessionPolicy_, lifecycle_, log_, maxActive_, maxInactiveInterval_, objectName_, rejectedCounter_, replicationGranularity_, sessionIDGenerator_, sessionIdLength_, sessions_, started_, stats_, support_, timeSinceLastReset_, useLocalCache_ |
Constructor Summary | |
JBossCacheManager()
|
Method Summary | |
void |
add(Session session)
|
Session |
createEmptySession()
|
Session |
createSession()
Create a new session. |
Session |
createSession(java.lang.String sessionId)
Create a new session. |
protected void |
endTransaction()
|
org.jboss.web.tomcat.tc5.session.ClusteredSession |
findLocalSession(java.lang.String realId)
Find in-memory sessions, if any. |
org.jboss.web.tomcat.tc5.session.ClusteredSession[] |
findLocalSessions()
Find in-memory sessions, if any. |
Session |
findSession(java.lang.String id)
|
Session[] |
findSessions()
Return the sessions. |
JBossCacheService (src) |
getCacheService()
|
void |
init(java.lang.String name,
WebMetaData (src) webMetaData,
boolean useJK,
boolean useLocalCache)
Initialize the manager with the web metadata and |
protected Session |
loadSession(java.lang.String realId)
Load a session from the distributed store |
protected void |
processExpires()
Go through all sessions and look if they have expired. |
protected void |
processSessionRepl(org.jboss.web.tomcat.tc5.session.ClusteredSession session)
|
void |
remove(Session session)
|
void |
removeLocal(Session session)
Remove the active session locally from the manager without replicating to the cluster. |
void |
start()
Start this Manager |
void |
stop()
Stop this Manager |
boolean |
storeSession(Session baseSession)
Store the modified session. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean useJK_
protected TransactionManager (src) tm
Constructor Detail |
public JBossCacheManager()
Method Detail |
public void init(java.lang.String name, WebMetaData (src) webMetaData, boolean useJK, boolean useLocalCache) throws ClusteringNotSupportedException (src)
AbstractJBossManager (src)
init
in interface AbstractJBossManager (src)
init
in class JBossManager (src)
ClusteringNotSupportedException (src)
public JBossCacheService (src) getCacheService()
public void start() throws LifecycleException
start
in class JBossManager (src)
org.apache.catalina.LifecycleException
LifecycleException
public void stop() throws LifecycleException
JBossManager (src)
stop
in class JBossManager (src)
LifecycleException
public Session createSession()
public Session createSession(java.lang.String sessionId)
public boolean storeSession(Session baseSession)
JBossManager (src)
storeSession
in interface AbstractJBossManager (src)
storeSession
in class JBossManager (src)
baseSession
- public void add(Session session)
public Session createEmptySession()
public Session findSession(java.lang.String id)
public Session[] findSessions()
public org.jboss.web.tomcat.tc5.session.ClusteredSession[] findLocalSessions()
JBossManager (src)
findLocalSessions
in class JBossManager (src)
public org.jboss.web.tomcat.tc5.session.ClusteredSession findLocalSession(java.lang.String realId)
JBossManager (src)
findLocalSession
in class JBossManager (src)
realId
- the Session id without JvmRoute tag.
public void remove(Session session)
public void removeLocal(Session session)
JBossManager (src)
removeLocal
in interface AbstractJBossManager (src)
removeLocal
in class JBossManager (src)
session
- protected Session loadSession(java.lang.String realId)
realId
- The session-id for the session to load without JvmRoute
protected void processSessionRepl(org.jboss.web.tomcat.tc5.session.ClusteredSession session)
protected void endTransaction()
protected void processExpires()
processExpires
in class JBossManager (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |