|
||||||||||
| 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
public abstract class JBossCacheClusteredSipApplicationSession
Common superclass of ClusteredSipApplicationSession types that use JBossCache as their distributed cache.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface javax.servlet.sip.SipApplicationSession |
|---|
SipApplicationSession.Protocol |
| Field Summary | |
|---|---|
protected ConvergedJBossCacheService |
proxy_
Our proxy to the cache. |
| 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 |
JBossCacheClusteredSipApplicationSession(SipApplicationSessionKey key,
SipContext sipContext)
|
| Method Summary | |
|---|---|
protected void |
establishProxy()
Gets a reference to the JBossCacheService. |
void |
initAfterLoad(JBossCacheSipManager manager)
Initialize fields marked as transient after loading this session from the distributed store |
protected abstract void |
populateAttributes()
|
protected void |
populateMetaData()
Override the superclass to additionally reset this class' fields. |
void |
processSessionRepl()
Increment our version and place ourself in the cache. |
protected java.lang.Object |
removeAttributeInternal(java.lang.String name,
boolean localCall,
boolean localOnly)
Exists in this class solely to act as an API-compatible bridge to the deprecated ClusteredSipApplicationSession.removeJBossInternalAttribute(String). |
protected void |
removeFromManager(boolean localCall,
boolean localOnly)
Overrides the superclass impl by doing nothing if localCall
is false. |
protected java.lang.Object |
removeJBossInternalAttribute(java.lang.String name)
|
protected abstract java.lang.Object |
removeJBossInternalAttribute(java.lang.String name,
boolean localCall,
boolean localOnly)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected transient ConvergedJBossCacheService proxy_
| Constructor Detail |
|---|
protected JBossCacheClusteredSipApplicationSession(SipApplicationSessionKey key,
SipContext sipContext)
| Method Detail |
|---|
public void initAfterLoad(JBossCacheSipManager manager)
initAfterLoad in class ClusteredSipApplicationSessionmanager - the manager for this sessionprotected void establishProxy()
protected abstract void populateAttributes()
protected void populateMetaData()
NOTE: It is not anticipated that this method will be called on a ClusteredSession, but we are overriding the method to be thorough.
public void processSessionRepl()
processSessionRepl in class ClusteredSipApplicationSession
protected void removeFromManager(boolean localCall,
boolean localOnly)
localCall
is false. The JBossCacheManager will already be aware of a
remote invalidation and will handle removal itself.
removeFromManager in class ClusteredSipApplicationSessionlocalCall - whether this call originated from local activity or from a
remote invalidation. In this default implementation, this
parameter is ignored.localOnly - whether the rest of the cluster should be made aware of the
removal
protected java.lang.Object removeAttributeInternal(java.lang.String name,
boolean localCall,
boolean localOnly)
ClusteredSipApplicationSessionClusteredSipApplicationSession.removeJBossInternalAttribute(String).
JBossCacheClusteredSession subclasses will override this to call their
own methods that make use of localCall and localOnly
removeAttributeInternal in class ClusteredSipApplicationSessionprotected java.lang.Object removeJBossInternalAttribute(java.lang.String name)
removeJBossInternalAttribute in class ClusteredSipApplicationSession
protected abstract java.lang.Object removeJBossInternalAttribute(java.lang.String name,
boolean localCall,
boolean localOnly)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||