|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.web.tomcat.service.session.JBossManager
org.jboss.web.tomcat.service.session.JBossCacheManager
org.jboss.web.tomcat.service.session.JBossCacheSipManager
public class JBossCacheSipManager
Implementation of a converged clustered session manager for catalina using JBossCache replication. Based on JbossCacheManager JBOSS AS 4.2.2 Tag I was forced to copy over most of the code since some things that needed to be adapted were private
| Field Summary | |
|---|---|
protected static org.jboss.logging.Logger |
logger
|
protected javax.transaction.TransactionManager |
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.service.session.JBossManager |
|---|
activeCounter_, container_, createdCounter_, distributable_, expiredCounter_, invalidateSessionPolicy_, jvmRoute_, lifecycle_, log_, maxActive_, maxActiveCounter_, maxInactiveInterval_, objectName_, processingTime_, rejectedCounter_, replicationGranularity_, sessionIDGenerator_, sessionIdLength_, sessions_, started_, stats_, support_, timeSinceLastReset_, useLocalCache_ |
| Fields inherited from interface org.apache.catalina.Lifecycle |
|---|
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, INIT_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT |
| Constructor Summary | |
|---|---|
JBossCacheSipManager()
|
|
| Method Summary | |
|---|---|
void |
add(org.apache.catalina.Session session)
|
void |
add(SipApplicationSession session)
|
void |
add(SipSession session)
|
void |
backgroundProcess()
Overrides the superclass version to add a check as to whether we should do trace level logging. |
protected void |
clearSessions()
Clear the underlying cache store and also pojo that has the observers. |
protected void |
clearSipApplicationSessions()
Clear the underlying cache store and also pojo that has the observers. |
org.apache.catalina.Session |
createEmptySession()
|
org.apache.catalina.Session |
createSession()
Create a new session with a generated id. |
org.apache.catalina.Session |
createSession(java.lang.String sessionId)
Create a new session. |
void |
dumpSipApplicationSessions()
|
void |
dumpSipSessions()
|
protected void |
endTransaction(java.lang.String id)
|
void |
expireSession(java.lang.String sessionId)
|
org.jboss.web.tomcat.service.session.ClusteredSession |
findLocalSession(java.lang.String realId)
Returns the given session if it is being actively managed by this manager. |
org.jboss.web.tomcat.service.session.ClusteredSession[] |
findLocalSessions()
Returns all the sessions that are being actively managed by this manager. |
ClusteredSipApplicationSession |
findLocalSipApplicationSession(SipApplicationSessionKey key,
boolean create)
Returns the given sip application session if it is being actively managed by this manager. |
ClusteredSipSession |
findLocalSipSession(SipSessionKey key,
boolean create,
MobicentsSipApplicationSession sipApplicationSessionImpl)
Returns the given sip session if it is being actively managed by this manager. |
org.apache.catalina.Session |
findSession(java.lang.String id)
Attempts to find the session in the collection of those being managed locally, and if not found there, in the distributed cache of sessions. |
org.apache.catalina.Session[] |
findSessions()
Return the sessions. |
MobicentsSipApplicationSession |
findSipApplicationSession(javax.servlet.http.HttpSession httpSession)
Retrieves the sip application session holding the converged http session in parameter |
java.lang.String |
getCacheObjectNameString()
Gets a String representation of the JMX ObjectName under
which our TreeCache is registered. |
org.jboss.web.tomcat.service.session.JBossCacheService |
getCacheService()
Gets the JBossCacheService through which we interact with
the TreeCache. |
org.apache.catalina.Container |
getContainer()
|
java.lang.String |
getLastAccessedTime(java.lang.String sessionId)
|
protected java.lang.String |
getRealId(java.lang.String id)
Gets the session id with any jvmRoute removed. |
int |
getReplicationGranularity()
Returns the replication granularity expressed as an int. |
java.lang.String |
getReplicationGranularityString()
Gets the granularity of session data replicated across the cluster; i.e. |
java.lang.String |
getReplicationTriggerString()
Gets the type of operations on a HttpSession that trigger
replication. |
java.lang.Object |
getSessionAttribute(java.lang.String sessionId,
java.lang.String key)
|
java.lang.String |
getSessionAttributeString(java.lang.String sessionId,
java.lang.String key)
|
MobicentsSipApplicationSession |
getSipApplicationSession(SipApplicationSessionKey key,
boolean create)
Retrieve a sip application session from its key. |
SipFactoryImpl |
getSipFactoryImpl()
|
MobicentsSipSession |
getSipSession(SipSessionKey key,
boolean create,
SipFactoryImpl sipFactoryImpl,
MobicentsSipApplicationSession sipApplicationSessionImpl)
Retrieve a sip session from its key. |
int |
getSnapshotInterval()
Gets how often session changes should be replicated to other nodes. |
java.lang.String |
getSnapshotMode()
Gets when sessions are replicated to the other nodes. |
boolean |
getUseJK()
Gets whether the Engine in which we are running uses
mod_jk. |
protected java.lang.ClassLoader |
getWebappClassLoader()
Gets the classloader of the webapp we are managing. |
void |
init(java.lang.String name,
org.jboss.metadata.WebMetaData webMetaData,
boolean useJK,
boolean useLocalCache)
Initializes this Manager when running in embedded mode. |
java.lang.Boolean |
isReplicationFieldBatchMode()
Gets whether, if replication granularity is set to FIELD,
replication should be done in batch mode. |
java.lang.String |
listLocalSessionIds()
|
java.lang.String |
listSessionIds()
|
protected org.jboss.web.tomcat.service.session.ClusteredSession |
loadSession(java.lang.String realId)
Loads a session from the distributed store. |
protected ClusteredSipApplicationSession |
loadSipApplicationSession(SipApplicationSessionKey key,
boolean create)
Loads a session from the distributed store. |
protected ClusteredSipSession |
loadSipSession(SipSessionKey key,
boolean create,
SipFactoryImpl sipFactoryImpl,
MobicentsSipApplicationSession sipApplicationSessionImpl)
Loads a session from the distributed store. |
protected void |
processExpires()
Goes through all sessions and look if they have expired. |
void |
processLocalPojoModification(java.lang.String realId)
|
void |
processRemoteAttributeRemoval(java.lang.String realId,
java.lang.String attrKey)
|
void |
processRemoteInvalidation(java.lang.String realId)
|
void |
processRemoteSipApplicationSessionAttributeRemoval(java.lang.String realId,
java.lang.String attrKey)
|
void |
processRemoteSipApplicationSessionInvalidation(java.lang.String realId)
|
void |
processRemoteSipSessionAttributeRemoval(java.lang.String realId,
java.lang.String attrKey)
|
void |
processRemoteSipSessionInvalidation(java.lang.String realId)
|
protected void |
processSessionRepl(org.jboss.web.tomcat.service.session.ClusteredSession session)
Places the current session contents in the distributed cache and replicates them to the cluster |
void |
processSipApplicationSessionLocalPojoModification(java.lang.String realId)
|
protected void |
processSipApplicationSessionRepl(ClusteredSipApplicationSession session)
Places the current session contents in the distributed cache and replicates them to the cluster |
void |
processSipSessionLocalPojoModification(java.lang.String realId)
|
protected void |
processSipSessionRepl(ClusteredSipSession session)
Places the current session contents in the distributed cache and replicates them to the cluster |
void |
remove(org.apache.catalina.Session session)
Removes the session from this Manager's collection of actively managed sessions. |
void |
removeAllSessions()
Remove the sip sessions and sip application sessions |
void |
removeLocal(org.apache.catalina.Session session)
Removes the session from this Manager's collection of actively managed sessions. |
void |
removeLocal(SipApplicationSession session)
Removes the session from this Manager's collection of actively managed sessions. |
void |
removeLocal(SipSession session)
Removes the session from this Manager's collection of actively managed sessions. |
MobicentsSipApplicationSession |
removeSipApplicationSession(SipApplicationSessionKey key)
Removes a sip application session from the manager by its key |
MobicentsSipSession |
removeSipSession(SipSessionKey key)
Removes a sip session from the manager by its key |
void |
setCacheObjectNameString(java.lang.String treeCacheObjectName)
Sets the JMX ObjectName under which our
TreeCache is registered. |
void |
setContainer(org.apache.catalina.Container container)
|
void |
setReplicationFieldBatchMode(boolean replicationFieldBatchMode)
Sets whether, if replication granularity is set to FIELD,
replication should be done in batch mode. |
void |
setReplicationGranularityString(java.lang.String granularity)
Sets the granularity of session data replicated across the cluster. |
void |
setReplicationTriggerString(java.lang.String trigger)
Sets the type of operations on a HttpSession that trigger
replication. |
void |
setSipFactoryImpl(SipFactoryImpl sipFactoryImpl)
|
void |
setSnapshotInterval(int snapshotInterval)
Sets how often session changes should be replicated to other nodes. |
void |
setSnapshotMode(java.lang.String snapshotMode)
Sets when sessions are replicated to the other nodes. |
void |
setUseJK(boolean useJK)
Sets whether the Engine in which we are running uses
mod_jk. |
void |
setUseLocalCache(boolean useLocalCache)
|
void |
start()
Start this Manager |
void |
stop()
|
boolean |
storeSession(org.apache.catalina.Session baseSession)
|
boolean |
storeSipApplicationSession(SipApplicationSession baseSession)
|
boolean |
storeSipSession(SipSession baseSession)
|
protected void |
unloadedSessionChanged(java.lang.String realId,
java.lang.String dataOwner)
Callback from the CacheListener to notify us that a session we haven't loaded has been changed. |
protected void |
unloadedSipApplicationSessionChanged(java.lang.String realId,
java.lang.String dataOwner)
Callback from the CacheListener to notify us that a session we haven't loaded has been changed. |
protected void |
unloadedSipSessionChanged(java.lang.String realId,
java.lang.String dataOwner)
Callback from the CacheListener to notify us that a session we haven't loaded has been changed. |
| Methods inherited from class org.jboss.web.tomcat.service.session.JBossManager |
|---|
addLifecycleListener, addPropertyChangeListener, findLifecycleListeners, getActiveSessionCount, getActiveSessions, getCreatedSessionCount, getDistributable, getEngine, getExpiredSessionCount, getExpiredSessions, getInfo, getInvalidateSessionPolicy, getJvmRoute, getMaxActive, getMaxActiveAllowed, getMaxActiveSessionCount, getMaxInactiveInterval, getNextId, getObjectName, getProcessingTime, getRejectedSessionCount, getRejectedSessions, getReplicationStatistics, getSessionAverageAliveTime, getSessionCounter, getSessionIdLength, getSessionMaxAliveTime, isUseLocalCache, load, propertyChange, removeLifecycleListener, removePropertyChangeListener, reportReplicationStatistics, reportReplicationStatisticsCSV, reportReplicationStatisticsCSV, resetStats, setDistributable, setExpiredSessions, setMaxActive, setMaxActiveAllowed, setMaxInactiveInterval, setNewSessionCookie, setRejectedSessions, setSessionAverageAliveTime, setSessionCookie, setSessionCounter, setSessionIdLength, setSessionMaxAliveTime, startManager, stopManager, timeInSecondsSinceLastReset, unload |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.catalina.Manager |
|---|
addPropertyChangeListener, getActiveSessions, getDistributable, getExpiredSessions, getInfo, getMaxActive, getMaxInactiveInterval, getRejectedSessions, getSessionAverageAliveTime, getSessionCounter, getSessionIdLength, getSessionMaxAliveTime, load, removePropertyChangeListener, setDistributable, setExpiredSessions, setMaxActive, setMaxInactiveInterval, setRejectedSessions, setSessionAverageAliveTime, setSessionCounter, setSessionIdLength, setSessionMaxAliveTime, unload |
| Methods inherited from interface org.jboss.web.tomcat.service.session.JBossManagerMBean |
|---|
getActiveSessionCount, getCreatedSessionCount, getDistributable, getExpiredSessionCount, getMaxActiveAllowed, getMaxActiveSessionCount, getMaxInactiveInterval, getProcessingTime, getRejectedSessionCount, getReplicationStatistics, getSessionIdLength, reportReplicationStatistics, reportReplicationStatisticsCSV, reportReplicationStatisticsCSV, resetStats, setMaxActiveAllowed, setMaxInactiveInterval, timeInSecondsSinceLastReset |
| Field Detail |
|---|
protected static org.jboss.logging.Logger logger
protected javax.transaction.TransactionManager tm
protected boolean useJK_
| Constructor Detail |
|---|
public JBossCacheSipManager()
| Method Detail |
|---|
public void init(java.lang.String name,
org.jboss.metadata.WebMetaData webMetaData,
boolean useJK,
boolean useLocalCache)
throws org.jboss.web.tomcat.service.session.ClusteringNotSupportedException
NOTE: This method should not be called when running unembedded.
init in interface org.jboss.web.tomcat.service.session.AbstractJBossManagerinit in class org.jboss.web.tomcat.service.session.JBossCacheManagerorg.jboss.web.tomcat.service.session.ClusteringNotSupportedExceptionpublic org.jboss.web.tomcat.service.session.JBossCacheService getCacheService()
JBossCacheService through which we interact with
the TreeCache.
getCacheService in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic java.lang.String getCacheObjectNameString()
ObjectName under
which our TreeCache is registered.
getCacheObjectNameString in interface org.jboss.web.tomcat.service.session.JBossCacheManagerMBeangetCacheObjectNameString in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic void setCacheObjectNameString(java.lang.String treeCacheObjectName)
ObjectName under which our
TreeCache is registered.
setCacheObjectNameString in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic java.lang.String getSnapshotMode()
getSnapshotMode in interface org.jboss.web.tomcat.service.session.JBossCacheManagerMBeangetSnapshotMode in class org.jboss.web.tomcat.service.session.JBossCacheManagergetSnapshotInterval()public void setSnapshotMode(java.lang.String snapshotMode)
setSnapshotMode in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic int getSnapshotInterval()
snapshotMode is set to
interval.
getSnapshotInterval in interface org.jboss.web.tomcat.service.session.JBossCacheManagerMBeangetSnapshotInterval in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic void setSnapshotInterval(int snapshotInterval)
setSnapshotInterval in class org.jboss.web.tomcat.service.session.JBossCacheManagersnapshotInterval - the number of milliseconds between session replications.public boolean getUseJK()
Engine in which we are running uses
mod_jk.
getUseJK in interface org.jboss.web.tomcat.service.session.JBossCacheManagerMBeangetUseJK in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic void setUseJK(boolean useJK)
Engine in which we are running uses
mod_jk.
setUseJK in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic int getReplicationGranularity()
getReplicationGranularity in class org.jboss.web.tomcat.service.session.JBossCacheManagerWebMetaData.REPLICATION_GRANULARITY_ATTRIBUTE,
WebMetaData.REPLICATION_GRANULARITY_FIELD,
WebMetaData.REPLICATION_GRANULARITY_SESSIONpublic java.lang.String getReplicationGranularityString()
getReplicationGranularityString in interface org.jboss.web.tomcat.service.session.JBossCacheManagerMBeangetReplicationGranularityString in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic void setReplicationGranularityString(java.lang.String granularity)
setReplicationGranularityString in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic java.lang.String getReplicationTriggerString()
HttpSession that trigger
replication.
getReplicationTriggerString in interface org.jboss.web.tomcat.service.session.JBossCacheManagerMBeangetReplicationTriggerString in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic void setReplicationTriggerString(java.lang.String trigger)
HttpSession that trigger
replication. Valid values are:
setReplicationTriggerString in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic java.lang.Boolean isReplicationFieldBatchMode()
FIELD,
replication should be done in batch mode. Ignored if field-level
granularity is not used.
isReplicationFieldBatchMode in interface org.jboss.web.tomcat.service.session.JBossCacheManagerMBeanisReplicationFieldBatchMode in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic void setReplicationFieldBatchMode(boolean replicationFieldBatchMode)
FIELD,
replication should be done in batch mode. Ignored if field-level
granularity is not used.
setReplicationFieldBatchMode in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic void setUseLocalCache(boolean useLocalCache)
setUseLocalCache in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic void expireSession(java.lang.String sessionId)
expireSession in interface org.jboss.web.tomcat.service.session.JBossCacheManagerMBeanexpireSession in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic java.lang.String getLastAccessedTime(java.lang.String sessionId)
getLastAccessedTime in interface org.jboss.web.tomcat.service.session.JBossCacheManagerMBeangetLastAccessedTime in class org.jboss.web.tomcat.service.session.JBossCacheManager
public java.lang.Object getSessionAttribute(java.lang.String sessionId,
java.lang.String key)
getSessionAttribute in interface org.jboss.web.tomcat.service.session.JBossCacheManagerMBeangetSessionAttribute in class org.jboss.web.tomcat.service.session.JBossCacheManager
public java.lang.String getSessionAttributeString(java.lang.String sessionId,
java.lang.String key)
getSessionAttributeString in interface org.jboss.web.tomcat.service.session.JBossCacheManagerMBeangetSessionAttributeString in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic java.lang.String listLocalSessionIds()
listLocalSessionIds in interface org.jboss.web.tomcat.service.session.JBossCacheManagerMBeanlistLocalSessionIds in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic java.lang.String listSessionIds()
listSessionIds in interface org.jboss.web.tomcat.service.session.JBossCacheManagerMBeanlistSessionIds in class org.jboss.web.tomcat.service.session.JBossCacheManager
public void start()
throws org.apache.catalina.LifecycleException
start in interface org.apache.catalina.Lifecyclestart in class org.jboss.web.tomcat.service.session.JBossCacheManagerorg.apache.catalina.LifecycleException
public void stop()
throws org.apache.catalina.LifecycleException
stop in interface org.apache.catalina.Lifecyclestop in class org.jboss.web.tomcat.service.session.JBossCacheManagerorg.apache.catalina.LifecycleExceptionprotected void clearSessions()
clearSessions in class org.jboss.web.tomcat.service.session.JBossCacheManagerprotected void clearSipApplicationSessions()
public org.apache.catalina.Session createSession()
createSession in interface org.apache.catalina.ManagercreateSession in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic org.apache.catalina.Session createSession(java.lang.String sessionId)
createSession in interface org.apache.catalina.ManagercreateSession in class org.jboss.web.tomcat.service.session.JBossCacheManagersessionId - the id to use, or null if we should generate a
new id
java.lang.IllegalStateException - if the current number of active sessions exceeds the maximum
number allowedpublic boolean storeSession(org.apache.catalina.Session baseSession)
storeSession in interface org.jboss.web.tomcat.service.session.AbstractJBossManagerstoreSession in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic boolean storeSipSession(SipSession baseSession)
public boolean storeSipApplicationSession(SipApplicationSession baseSession)
public void add(org.apache.catalina.Session session)
add in interface org.apache.catalina.Manageradd in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic void add(SipSession session)
public void add(SipApplicationSession session)
public org.apache.catalina.Session findSession(java.lang.String id)
If a session is found in the distributed cache, it is added to the collection of those being managed locally.
findSession in interface org.apache.catalina.ManagerfindSession in class org.jboss.web.tomcat.service.session.JBossCacheManagerid - the session id, which may include an appended jvmRoute
null if no such session could be
foundpublic org.apache.catalina.Session[] findSessions()
Note also that when sessions are loaded from the distributed cache, no check is made as to whether the number of local sessions will thereafter exceed the maximum number allowed on this server.
findSessions in interface org.apache.catalina.ManagerfindSessions in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic org.jboss.web.tomcat.service.session.ClusteredSession[] findLocalSessions()
findLocalSession(String) as well as all sessions brought into
local management by a call to findSessions().
findLocalSessions in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic org.jboss.web.tomcat.service.session.ClusteredSession findLocalSession(java.lang.String realId)
findLocalSession(String) or brought into local management by a
call to findSessions().
findLocalSession in class org.jboss.web.tomcat.service.session.JBossCacheManagerrealId - the session id, with any trailing jvmRoute removed.getRealId(String)
public ClusteredSipSession findLocalSipSession(SipSessionKey key,
boolean create,
MobicentsSipApplicationSession sipApplicationSessionImpl)
#findLocalSipSession(String) or brought into local management by a
call to #findSipSessions().
key - the session key, with any trailing jvmRoute removed.
public ClusteredSipApplicationSession findLocalSipApplicationSession(SipApplicationSessionKey key,
boolean create)
#findLocalSipApplicationSession(String) or brought into local management by a
call to #findSipApplicationSessions().
key - the session key, with any trailing jvmRoute removed.public void remove(org.apache.catalina.Session session)
remove in interface org.apache.catalina.Managerremove in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic void removeLocal(org.apache.catalina.Session session)
removeLocal in interface org.jboss.web.tomcat.service.session.AbstractJBossManagerremoveLocal in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic void removeLocal(SipSession session)
public void removeLocal(SipApplicationSession session)
protected org.jboss.web.tomcat.service.session.ClusteredSession loadSession(java.lang.String realId)
loadSession in class org.jboss.web.tomcat.service.session.JBossCacheManagerrealId - id of the session-id with any jvmRoute removed
null if the session cannot be found
in the distributed store
TODO refactor this into 2 overloaded methods -- one that takes a
ClusteredSession and populates it and one that takes an id,
creates the session and calls the first
protected ClusteredSipSession loadSipSession(SipSessionKey key,
boolean create,
SipFactoryImpl sipFactoryImpl,
MobicentsSipApplicationSession sipApplicationSessionImpl)
realId - id of the session-id with any jvmRoute removed
null if the session cannot be found
in the distributed store
TODO refactor this into 2 overloaded methods -- one that takes a
ClusteredSession and populates it and one that takes an id,
creates the session and calls the first
protected ClusteredSipApplicationSession loadSipApplicationSession(SipApplicationSessionKey key,
boolean create)
realId - id of the session-id with any jvmRoute removed
null if the session cannot be found
in the distributed store
TODO refactor this into 2 overloaded methods -- one that takes a
ClusteredSession and populates it and one that takes an id,
creates the session and calls the firstprotected void processSessionRepl(org.jboss.web.tomcat.service.session.ClusteredSession session)
processSessionRepl in class org.jboss.web.tomcat.service.session.JBossCacheManagersession - the session. Cannot be null.protected void processSipSessionRepl(ClusteredSipSession session)
session - the session. Cannot be null.protected void processSipApplicationSessionRepl(ClusteredSipApplicationSession session)
session - the session. Cannot be null.protected void endTransaction(java.lang.String id)
endTransaction in class org.jboss.web.tomcat.service.session.JBossCacheManagerprotected java.lang.ClassLoader getWebappClassLoader()
getWebappClassLoader in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic void backgroundProcess()
backgroundProcess in interface org.apache.catalina.ManagerbackgroundProcess in class org.jboss.web.tomcat.service.session.JBossCacheManagerprotected void processExpires()
processExpires in class org.jboss.web.tomcat.service.session.JBossCacheManager
public void processRemoteAttributeRemoval(java.lang.String realId,
java.lang.String attrKey)
processRemoteAttributeRemoval in class org.jboss.web.tomcat.service.session.JBossCacheManager
public void processRemoteSipApplicationSessionAttributeRemoval(java.lang.String realId,
java.lang.String attrKey)
public void processRemoteSipSessionAttributeRemoval(java.lang.String realId,
java.lang.String attrKey)
public void processRemoteInvalidation(java.lang.String realId)
processRemoteInvalidation in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic void processRemoteSipApplicationSessionInvalidation(java.lang.String realId)
public void processRemoteSipSessionInvalidation(java.lang.String realId)
public void processLocalPojoModification(java.lang.String realId)
processLocalPojoModification in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic void processSipApplicationSessionLocalPojoModification(java.lang.String realId)
public void processSipSessionLocalPojoModification(java.lang.String realId)
protected java.lang.String getRealId(java.lang.String id)
getRealId in class org.jboss.web.tomcat.service.session.JBossCacheManagerid - a session id with or without an appended jvmRoute. Cannot be
null.
protected void unloadedSessionChanged(java.lang.String realId,
java.lang.String dataOwner)
unloadedSessionChanged in class org.jboss.web.tomcat.service.session.JBossCacheManagerrealId - the session id, without any trailing jvmRoutedataOwner - the owner of the session. Can be null if the
owner is unknown.
protected void unloadedSipSessionChanged(java.lang.String realId,
java.lang.String dataOwner)
realId - the session id, without any trailing jvmRoutedataOwner - the owner of the session. Can be null if the
owner is unknown.
protected void unloadedSipApplicationSessionChanged(java.lang.String realId,
java.lang.String dataOwner)
realId - the session id, without any trailing jvmRoutedataOwner - the owner of the session. Can be null if the
owner is unknown.public org.apache.catalina.Session createEmptySession()
createEmptySession in interface org.apache.catalina.ManagercreateEmptySession in class org.jboss.web.tomcat.service.session.JBossCacheManagerpublic SipFactoryImpl getSipFactoryImpl()
getSipFactoryImpl in interface SipManagerpublic void setSipFactoryImpl(SipFactoryImpl sipFactoryImpl)
setSipFactoryImpl in interface SipManagersipFactoryImpl - the SipFactoryImpl to setpublic org.apache.catalina.Container getContainer()
getContainer in interface org.apache.catalina.ManagergetContainer in class org.jboss.web.tomcat.service.session.JBossManagerpublic void setContainer(org.apache.catalina.Container container)
setContainer in interface org.apache.catalina.ManagersetContainer in class org.jboss.web.tomcat.service.session.JBossManagercontainer - the container to setpublic MobicentsSipSession removeSipSession(SipSessionKey key)
removeSipSession in interface SipManagerkey - the identifier for this session
public MobicentsSipApplicationSession removeSipApplicationSession(SipApplicationSessionKey key)
removeSipApplicationSession in interface SipManagerkey - the identifier for this session
public MobicentsSipApplicationSession getSipApplicationSession(SipApplicationSessionKey key,
boolean create)
getSipApplicationSession in interface SipManagerkey - the key identifying the sip application session to retrievecreate - if set to true, if no session has been found one will be created
public MobicentsSipSession getSipSession(SipSessionKey key,
boolean create,
SipFactoryImpl sipFactoryImpl,
MobicentsSipApplicationSession sipApplicationSessionImpl)
getSipSession in interface SipManagerkey - the key identifying the sip session to retrievecreate - if set to true, if no session has been found one will be createdsipFactoryImpl - needed only for sip session creation.sipApplicationSessionImpl - to associate the SipSession with if create is set to true, if false it won't be used
public MobicentsSipApplicationSession findSipApplicationSession(javax.servlet.http.HttpSession httpSession)
findSipApplicationSession in interface SipManagerpublic void dumpSipSessions()
dumpSipSessions in interface SipManagerpublic void dumpSipApplicationSessions()
dumpSipApplicationSessions in interface SipManagerpublic void removeAllSessions()
removeAllSessions in interface SipManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||