|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.servlet.sip.core.session.SipSessionImpl
org.jboss.web.tomcat.service.session.ClusteredSipSession
org.jboss.web.tomcat.service.session.JBossCacheClusteredSipSession
public abstract class JBossCacheClusteredSipSession
Common superclass of ClusteredSipSession types that use JBossCache as their distributed cache.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.mobicents.servlet.sip.core.session.SipSessionImpl |
|---|
SipSessionImpl.SipSessionEventType |
| Nested classes/interfaces inherited from interface javax.servlet.sip.SipSession |
|---|
SipSession.State |
| Field Summary | |
|---|---|
protected ConvergedJBossCacheService |
proxy_
Our proxy to the cache. |
| Fields inherited from class org.jboss.web.tomcat.service.session.ClusteredSipSession |
|---|
alwaysReplicateMetadata, B2B_SESSION_MAP, B2B_SESSION_SIZE, CREATION_TIME, CSEQ, DIALOG_ID, excludedAttributes, firstAccess, HANDLER, hasActivationListener, info, INVALIDATE_WHEN_READY, INVALIDATION_POLICY, invalidationPolicy, IS_VALID, isNew, isSessionModifiedSinceLastSave, lastReplicated, maxUnreplicatedFactor, maxUnreplicatedInterval, metaModifiedMap_, outdatedTime, outdatedVersion, PROXY, READY_TO_INVALIDATE, replicationExcludes, sessionAttributesDirty, sessionCreatingDialogId, sessionLastAccessTimeDirty, sessionMetadataDirty, sm, STATE, version |
| Fields inherited from class org.mobicents.servlet.sip.core.session.SipSessionImpl |
|---|
ackReceived, b2buaHelper, creationTime, cseq, derivedSipSessions, facade, handlerServlet, invalidateWhenReady, isValid, isValidInternal, key, lastAccessedTime, localParty, nextSipApplicationRouterInfo, okToByeSentOrReceived, ongoingTransactions, originalMethod, outboundInterface, parentSession, proxy, readyToInvalidate, remoteParty, routingRegion, semaphore, sessionCreatingDialog, sessionCreatingTransaction, sipApplicationSession, sipApplicationSessionKey, sipFactory, sipSessionAttributeMap, state, stateInfo, subscriberURI, subscriptions, userPrincipal |
| Constructor Summary | |
|---|---|
protected |
JBossCacheClusteredSipSession(SipSessionKey key,
SipFactoryImpl sipFactoryImpl,
MobicentsSipApplicationSession mobicentsSipApplicationSession,
org.jboss.web.tomcat.service.session.JBossCacheManager jBossCacheManager)
|
| Method Summary | |
|---|---|
protected void |
establishProxy(org.jboss.web.tomcat.service.session.JBossCacheManager jBossCacheManager)
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 ClusteredSipSession.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 JBossCacheClusteredSipSession(SipSessionKey key,
SipFactoryImpl sipFactoryImpl,
MobicentsSipApplicationSession mobicentsSipApplicationSession,
org.jboss.web.tomcat.service.session.JBossCacheManager jBossCacheManager)
| Method Detail |
|---|
public void initAfterLoad(JBossCacheSipManager manager)
initAfterLoad in class ClusteredSipSessionmanager - the manager for this sessionprotected void establishProxy(org.jboss.web.tomcat.service.session.JBossCacheManager jBossCacheManager)
jBossCacheManager - 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 ClusteredSipSession
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 ClusteredSipSessionlocalCall - 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)
ClusteredSipSessionClusteredSipSession.removeJBossInternalAttribute(String).
JBossCacheClusteredSession subclasses will override this to call their
own methods that make use of localCall and localOnly
removeAttributeInternal in class ClusteredSipSessionprotected java.lang.Object removeJBossInternalAttribute(java.lang.String name)
removeJBossInternalAttribute in class ClusteredSipSession
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 | |||||||||