|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.servlet.sip.core.session.SipApplicationSessionImpl
org.jboss.web.tomcat.service.session.ClusteredSipApplicationSession
org.jboss.web.tomcat.service.session.JBossCacheClusteredSipApplicationSession
org.jboss.web.tomcat.service.session.AttributeBasedClusteredSipApplicationSession
public class AttributeBasedClusteredSipApplicationSession
Implementation of a clustered sip application session for the JBossCacheManager. This class is based on the following Jboss class org.jboss.web.tomcat.service.session.AttributeBasedClusteredSession JBOSS AS 4.2.2 Tag The replication granularity level is attribute based; that is, we replicate only the dirty attributes. We use JBossCache for our internal, deplicated data store. The internal structure is like in JBossCache:
/SIPSESSION
/hostname
/sip_app_name (path + session id is unique)
/sipapplicationsessionid Map(id, session)
(VERSION_KEY, version) // Used for version tracking. version is an Integer.
/ATTRIBUTE Map(attr_key, value)
Note that the isolation level of the cache dictates the
concurrency behavior. Also note that session and its associated attribtues are stored in different nodes.
This will be ok since cache will take care of concurrency. When replicating, we will need to replicate both
session and its attributes.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface javax.servlet.sip.SipApplicationSession |
|---|
SipApplicationSession.Protocol |
| Field Summary | |
|---|---|
protected static java.lang.String[] |
EMPTY_ARRAY
|
protected static java.lang.String |
info
Descriptive information describing this Session implementation. |
| Fields inherited from class org.jboss.web.tomcat.service.session.JBossCacheClusteredSipApplicationSession |
|---|
proxy_ |
| Fields inherited from class org.mobicents.servlet.sip.core.session.SipApplicationSessionImpl |
|---|
creationTime, currentRequestHandler, expirationTime, expirationTimerFuture, expirationTimerTask, expired, facade, httpSessions, invalidateWhenReady, isValid, isValidInternal, jvmRoute, key, lastAccessedTime, readyToInvalidate, semaphore, servletTimers, sipApplicationSessionAttributeMap, sipApplicationSessionTimeout, sipContext, sipSessions |
| Fields inherited from interface org.mobicents.servlet.sip.core.session.MobicentsSipApplicationSession |
|---|
SIP_APPLICATION_KEY_PARAM_NAME |
| Constructor Summary | |
|---|---|
protected |
AttributeBasedClusteredSipApplicationSession(SipApplicationSessionKey key,
SipContext sipContext)
|
| Method Summary | |
|---|---|
protected void |
attributeChanged(java.lang.Object key,
java.lang.Object value,
int op)
|
protected void |
clearAttrChangedMaps()
|
protected java.lang.Object |
getJBossInternalAttribute(java.lang.String name)
|
protected java.util.Map |
getJBossInternalAttributes()
|
protected java.util.Set |
getJBossInternalKeys()
|
protected java.lang.String[] |
keys()
Method inherited from Tomcat. |
protected void |
populateAttributes()
Populate the attributes stored in the distributed store to local transient ones. |
void |
processSessionRepl()
Overrides the superclass version to read in the attributes. |
protected java.lang.Object |
removeJBossInternalAttribute(java.lang.String name,
boolean localCall,
boolean localOnly)
|
void |
removeMyself()
Remove myself from the internal store. |
void |
removeMyselfLocal()
Remove myself from the |
protected java.lang.Object |
setJBossInternalAttribute(java.lang.String key,
java.lang.Object value)
|
java.lang.String |
toString()
Return a string representation of this object. |
| Methods inherited from class org.jboss.web.tomcat.service.session.JBossCacheClusteredSipApplicationSession |
|---|
establishProxy, initAfterLoad, populateMetaData, removeAttributeInternal, removeFromManager, removeJBossInternalAttribute |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String[] EMPTY_ARRAY
protected static final java.lang.String info
| Constructor Detail |
|---|
protected AttributeBasedClusteredSipApplicationSession(SipApplicationSessionKey key,
SipContext sipContext)
| Method Detail |
|---|
public java.lang.String toString()
toString in class ClusteredSipApplicationSessionpublic void processSessionRepl()
processSessionRepl in class JBossCacheClusteredSipApplicationSessionpublic void removeMyself()
ClusteredSipApplicationSession
removeMyself in class ClusteredSipApplicationSessionpublic void removeMyselfLocal()
ClusteredSipApplicationSession
removeMyselfLocal in class ClusteredSipApplicationSessionprotected void populateAttributes()
populateAttributes in class JBossCacheClusteredSipApplicationSessionprotected java.lang.Object getJBossInternalAttribute(java.lang.String name)
getJBossInternalAttribute in class ClusteredSipApplicationSession
protected java.lang.Object removeJBossInternalAttribute(java.lang.String name,
boolean localCall,
boolean localOnly)
removeJBossInternalAttribute in class JBossCacheClusteredSipApplicationSessionprotected java.util.Map getJBossInternalAttributes()
getJBossInternalAttributes in class ClusteredSipApplicationSessionprotected java.util.Set getJBossInternalKeys()
protected java.lang.String[] keys()
keys in class ClusteredSipApplicationSession
protected java.lang.Object setJBossInternalAttribute(java.lang.String key,
java.lang.Object value)
setJBossInternalAttribute in class ClusteredSipApplicationSession
protected void attributeChanged(java.lang.Object key,
java.lang.Object value,
int op)
protected void clearAttrChangedMaps()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||