org.jboss.web.tomcat.service.session.distributedcache.impl.jbc
Class FieldBasedJBossCacheConvergedSipService

java.lang.Object
  extended by org.jboss.web.tomcat.service.session.distributedcache.impl.jbc.AbstractJBossCacheService<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
      extended by org.jboss.web.tomcat.service.session.distributedcache.impl.jbc.FieldBasedJBossCacheService
          extended by org.jboss.web.tomcat.service.session.distributedcache.impl.jbc.FieldBasedJBossCacheConvergedSipService
All Implemented Interfaces:
DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>, org.jboss.web.tomcat.service.session.distributedcache.spi.DistributedCacheManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>

public class FieldBasedJBossCacheConvergedSipService
extends org.jboss.web.tomcat.service.session.distributedcache.impl.jbc.FieldBasedJBossCacheService
implements DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>

Author:
jean.deruelle@gmail.com

Field Summary
 
Fields inherited from class org.jboss.web.tomcat.service.session.distributedcache.impl.jbc.FieldBasedJBossCacheService
ATTRIBUTE
 
Fields inherited from class org.jboss.web.tomcat.service.session.distributedcache.impl.jbc.AbstractJBossCacheService
ATTRIBUTE_KEY, batchingManager, BUDDY_BACKUP, BUDDY_BACKUP_FQN, cacheConfigName_, cacheWrapper_, combinedPath_, FQN_DELIMITER, INTERNAL_KEYS, log_, METADATA_KEY, SESSION, TIMESTAMP_KEY, VERSION_KEY
 
Constructor Summary
FieldBasedJBossCacheConvergedSipService(org.jboss.web.tomcat.service.session.distributedcache.spi.LocalDistributableSessionManager localManager)
           
FieldBasedJBossCacheConvergedSipService(org.jboss.web.tomcat.service.session.distributedcache.spi.LocalDistributableSessionManager localManager, org.jboss.cache.pojo.PojoCache cache)
           
 
Method Summary
 void evictSipApplicationSession(java.lang.String key)
          Evict a sip application session from the in-memory portion of the distributed cache, on this node only.
 void evictSipApplicationSession(java.lang.String key, java.lang.String dataOwner)
          Evict a non-locally-active sip application session from the in-memory portion of the distributed cache, on this node only.
 void evictSipSession(java.lang.String sipAppSessionKey, java.lang.String key)
          Evict a sip session from the in-memory portion of the distributed cache, on this node only.
 void evictSipSession(java.lang.String sipAppSessionKey, java.lang.String key, java.lang.String dataOwner)
          Evict a non-locally-active sip session from the in-memory portion of the distributed cache, on this node only.
static org.jboss.cache.Fqn<java.lang.String> getAttributeFqn(java.lang.String contextHostPath, java.lang.String sipApplicationSessionKey)
           
static org.jboss.cache.Fqn<java.lang.String> getAttributeFqn(java.lang.String contextHostPath, java.lang.String sipApplicationSessionKey, java.lang.String sipSessionKey)
           
 java.util.Map<java.lang.String,java.lang.Object> getConvergedSessionAttributes(java.lang.String realId, java.util.Map<java.lang.Object,java.lang.Object> distributedCacheData)
          Overrides the superclass to pull in attributes via PojoCache API.
static org.jboss.cache.Fqn<java.lang.String> getFieldFqn(java.lang.String contextHostPath, java.lang.String sipApplicationSessionKey, java.lang.String attributeKey)
           
static org.jboss.cache.Fqn<java.lang.String> getFieldFqn(java.lang.String contextHostPath, java.lang.String sipApplicationSessionKey, java.lang.String sipSessionKey, java.lang.String attributeKey)
           
 org.jboss.cache.Cache getJBossCache()
           
 java.lang.Object getSipApplicationSessionAttribute(java.lang.String sipApplicationSessionKey, java.lang.String key)
          Get the value of the attribute with the given key from the given session.
 java.util.Set<java.lang.String> getSipApplicationSessionAttributeKeys(java.lang.String sipApplicationSessionKey)
          Obtain the attribute keys associated with this session.
 java.util.Map<java.lang.String,java.lang.Object> getSipApplicationSessionAttributes(java.lang.String sipApplicationSessionKey)
          Return all attributes associated with this session id.
 org.jboss.web.tomcat.service.session.distributedcache.spi.IncomingDistributableSessionData getSipApplicationSessionData(java.lang.String key, boolean initialLoad)
          Get the IncomingDistributableSessionData that encapsulates the distributed cache's information about the given sip application session.
 org.jboss.web.tomcat.service.session.distributedcache.spi.IncomingDistributableSessionData getSipApplicationSessionData(java.lang.String key, java.lang.String dataOwner, boolean includeAttributes)
          Get the IncomingDistributableSessionData that encapsulates the distributed cache's information about the given sip application session.
 java.util.Map<java.lang.String,java.lang.String> getSipApplicationSessionKeys()
          Gets the ids of all sip application sessions in the underlying cache.
 java.lang.Object getSipSessionAttribute(java.lang.String sipApplicationSessionKey, java.lang.String sipSessionKey, java.lang.String key)
          Get the value of the attribute with the given key from the given session.
 java.util.Set<java.lang.String> getSipSessionAttributeKeys(java.lang.String sipApplicationSessionKey, java.lang.String sipSessionKey)
          Obtain the attribute keys associated with this session.
 java.util.Map<java.lang.String,java.lang.Object> getSipSessionAttributes(java.lang.String sipApplicationSessionKey, java.lang.String sipSessionKey)
          Return all attributes associated with this session id.
 org.jboss.web.tomcat.service.session.distributedcache.spi.IncomingDistributableSessionData getSipSessionData(java.lang.String sipAppSessionKey, java.lang.String key, boolean initialLoad)
          Get the IncomingDistributableSessionData that encapsulates the distributed cache's information about the given sip session.
 org.jboss.web.tomcat.service.session.distributedcache.spi.IncomingDistributableSessionData getSipSessionData(java.lang.String sipAppSessionKey, java.lang.String key, java.lang.String dataOwner, boolean includeAttributes)
          Get the IncomingDistributableSessionData that encapsulates the distributed cache's information about the given sip session.
 java.util.Map<java.lang.String,java.lang.String> getSipSessionKeys()
          Gets the ids of all sip sessions in the underlying cache.
 void putSipApplicationSessionAttribute(java.lang.String sipApplicationSessionKey, java.util.Map<java.lang.String,java.lang.Object> map)
          Stores the given map of attribute key/value pairs in the given session.
 void putSipApplicationSessionAttribute(java.lang.String sipApplicationSessionKey, java.lang.String key, java.lang.Object value)
          Stores the given value under the given key in the given session.
 void putSipSessionAttribute(java.lang.String sipApplicationSessionKey, java.lang.String sipSessionKey, java.util.Map<java.lang.String,java.lang.Object> map)
          Stores the given map of attribute key/value pairs in the given session.
 void putSipSessionAttribute(java.lang.String sipApplicationSessionKey, java.lang.String sipSessionKey, java.lang.String key, java.lang.Object value)
          Stores the given value under the given key in the given session.
 void removeSipApplicationSession(java.lang.String sipApplicationSessionKey)
          Globally remove a session from the distributed cache.
 java.lang.Object removeSipApplicationSessionAttribute(java.lang.String sipApplicationSessionKey, java.lang.String key)
          Removes the attribute with the given key from the given session.
 void removeSipApplicationSessionAttributeLocal(java.lang.String sipApplicationSessionKey, java.lang.String key)
          Removes the attribute with the given key from the given session, but only on the local node.
 void removeSipApplicationSessionLocal(java.lang.String key)
           
 void removeSipApplicationSessionLocal(java.lang.String key, java.lang.String dataOwner)
          Remove a non-locally active sip application session from the distributed cache, but on this node only.
 void removeSipSession(java.lang.String sipApplicationSessionKey, java.lang.String sipSessionKey)
          Globally remove a session from the distributed cache.
 java.lang.Object removeSipSessionAttribute(java.lang.String sipApplicationSessionKey, java.lang.String sipSessionKey, java.lang.String key)
          Removes the attribute with the given key from the given session.
 void removeSipSessionAttributeLocal(java.lang.String sipApplicationSessionKey, java.lang.String sipSessionKey, java.lang.String key)
          Removes the attribute with the given key from the given session, but only on the local node.
 void removeSipSessionLocal(java.lang.String sipAppSessionKey, java.lang.String key)
           
 void removeSipSessionLocal(java.lang.String sipAppSessionKey, java.lang.String key, java.lang.String dataOwner)
          Remove a non-locally active sip session from the distributed cache, but on this node only.
 void setApplicationName(java.lang.String applicationName)
           
 void setApplicationNameHashed(java.lang.String applicationNameHashed)
           
 void sipApplicationSessionCreated(java.lang.String key)
          Notification to the distributed cache that a session has been newly created.
 void sipSessionCreated(java.lang.String sipApplicationSessionKey, java.lang.String sipSessionKey)
          Notification to the distributed cache that a session has been newly created.
 void start()
           
 void stop()
           
 void storeSipApplicationSessionAttributes(org.jboss.cache.Fqn<java.lang.String> fqn, org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData sessionData)
          Store or update a sip application session in the distributed cache.
 void storeSipApplicationSessionData(org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData sipApplicationSessionData)
          Store or update a sip application session in the distributed cache.
 void storeSipSessionAttributes(org.jboss.cache.Fqn<java.lang.String> fqn, org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData sessionData)
          Store or update a sip session in the distributed cache.
 void storeSipSessionData(org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData sipSessionData)
          Store or update a sip session in the distributed cache.
 
Methods inherited from class org.jboss.web.tomcat.service.session.distributedcache.impl.jbc.FieldBasedJBossCacheService
getAttribute, getAttributeKeys, getAttributes, getSessionAttributes, getSupportsAttributeOperations, putAttribute, putAttribute, releaseCacheToManager, removeAttribute, removeAttributeLocal, removeSessionRegion, sessionCreated, setupSessionRegion, storeSessionAttributes
 
Methods inherited from class org.jboss.web.tomcat.service.session.distributedcache.impl.jbc.AbstractJBossCacheService
evictSession, evictSession, getBatchingManager, getBuddyBackupSessionFqn, getCache, getChildrenNames, getCombinedPath, getDistributableSessionData, getManager, getMarshalledValue, getSessionData, getSessionData, getSessionFqn, getSessionIds, getUnMarshalledValue, getWebappFqn, isMarshallingAvailable, isPassivationEnabled, removeSession, removeSessionLocal, removeSessionLocal, setCache, storeSessionData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.web.tomcat.service.session.distributedcache.spi.DistributedCacheManager
evictSession, evictSession, getAttribute, getAttributeKeys, getAttributes, getBatchingManager, getSessionData, getSessionData, getSessionIds, getSupportsAttributeOperations, isPassivationEnabled, putAttribute, putAttribute, removeAttribute, removeAttributeLocal, removeSession, removeSessionLocal, removeSessionLocal, sessionCreated, storeSessionData
 

Constructor Detail

FieldBasedJBossCacheConvergedSipService

public FieldBasedJBossCacheConvergedSipService(org.jboss.web.tomcat.service.session.distributedcache.spi.LocalDistributableSessionManager localManager)
                                        throws org.jboss.web.tomcat.service.session.distributedcache.spi.ClusteringNotSupportedException
Parameters:
localManager -
Throws:
org.jboss.web.tomcat.service.session.distributedcache.spi.ClusteringNotSupportedException

FieldBasedJBossCacheConvergedSipService

public FieldBasedJBossCacheConvergedSipService(org.jboss.web.tomcat.service.session.distributedcache.spi.LocalDistributableSessionManager localManager,
                                               org.jboss.cache.pojo.PojoCache cache)
Parameters:
localManager -
cache -
Method Detail

start

public void start()
Specified by:
start in interface org.jboss.web.tomcat.service.session.distributedcache.spi.DistributedCacheManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
Overrides:
start in class org.jboss.web.tomcat.service.session.distributedcache.impl.jbc.AbstractJBossCacheService<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>

stop

public void stop()
Specified by:
stop in interface org.jboss.web.tomcat.service.session.distributedcache.spi.DistributedCacheManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
Overrides:
stop in class org.jboss.web.tomcat.service.session.distributedcache.impl.jbc.AbstractJBossCacheService<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>

evictSipSession

public void evictSipSession(java.lang.String sipAppSessionKey,
                            java.lang.String key)
Description copied from interface: DistributedCacheConvergedSipManager
Evict a sip session from the in-memory portion of the distributed cache, on this node only.

Specified by:
evictSipSession in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
key - the session's key

evictSipApplicationSession

public void evictSipApplicationSession(java.lang.String key)
Description copied from interface: DistributedCacheConvergedSipManager
Evict a sip application session from the in-memory portion of the distributed cache, on this node only.

Specified by:
evictSipApplicationSession in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
Parameters:
key - the session's key

evictSipSession

public void evictSipSession(java.lang.String sipAppSessionKey,
                            java.lang.String key,
                            java.lang.String dataOwner)
Description copied from interface: DistributedCacheConvergedSipManager
Evict a non-locally-active sip session from the in-memory portion of the distributed cache, on this node only.

Specified by:
evictSipSession in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
key - the session's key
dataOwner - identifier of node where the session is active

evictSipApplicationSession

public void evictSipApplicationSession(java.lang.String key,
                                       java.lang.String dataOwner)
Description copied from interface: DistributedCacheConvergedSipManager
Evict a non-locally-active sip application session from the in-memory portion of the distributed cache, on this node only.

Specified by:
evictSipApplicationSession in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
Parameters:
key - the session's key
dataOwner - identifier of node where the session is active

getSipSessionData

public org.jboss.web.tomcat.service.session.distributedcache.spi.IncomingDistributableSessionData getSipSessionData(java.lang.String sipAppSessionKey,
                                                                                                                    java.lang.String key,
                                                                                                                    boolean initialLoad)
Description copied from interface: DistributedCacheConvergedSipManager
Get the IncomingDistributableSessionData that encapsulates the distributed cache's information about the given sip session.

Specified by:
getSipSessionData in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
key - the session's key
initialLoad - true if this is the first access of this session's data on this node
Returns:
the session data

getSipSessionData

public org.jboss.web.tomcat.service.session.distributedcache.spi.IncomingDistributableSessionData getSipSessionData(java.lang.String sipAppSessionKey,
                                                                                                                    java.lang.String key,
                                                                                                                    java.lang.String dataOwner,
                                                                                                                    boolean includeAttributes)
Description copied from interface: DistributedCacheConvergedSipManager
Get the IncomingDistributableSessionData that encapsulates the distributed cache's information about the given sip session.

Specified by:
getSipSessionData in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
key - the session's key
dataOwner - identifier of node where the session is active; null if locally active or location where active is unknown
includeAttributes - should
Returns:
the session data

getSipApplicationSessionData

public org.jboss.web.tomcat.service.session.distributedcache.spi.IncomingDistributableSessionData getSipApplicationSessionData(java.lang.String key,
                                                                                                                               boolean initialLoad)
Description copied from interface: DistributedCacheConvergedSipManager
Get the IncomingDistributableSessionData that encapsulates the distributed cache's information about the given sip application session.

Specified by:
getSipApplicationSessionData in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
Parameters:
key - the session's key
initialLoad - true if this is the first access of this session's data on this node
Returns:
the session data

getSipApplicationSessionData

public org.jboss.web.tomcat.service.session.distributedcache.spi.IncomingDistributableSessionData getSipApplicationSessionData(java.lang.String key,
                                                                                                                               java.lang.String dataOwner,
                                                                                                                               boolean includeAttributes)
Description copied from interface: DistributedCacheConvergedSipManager
Get the IncomingDistributableSessionData that encapsulates the distributed cache's information about the given sip application session.

Specified by:
getSipApplicationSessionData in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
Parameters:
key - the session's key
dataOwner - identifier of node where the session is active; null if locally active or location where active is unknown
includeAttributes - should
Returns:
the session data

getSipApplicationSessionKeys

public java.util.Map<java.lang.String,java.lang.String> getSipApplicationSessionKeys()
Description copied from interface: DistributedCacheConvergedSipManager
Gets the ids of all sip application sessions in the underlying cache.

Specified by:
getSipApplicationSessionKeys in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
Returns:
Map containing all of the sip application session key of sessions in the cache (with any jvmRoute removed) as keys, and the identifier of the data owner for the session as value (or a null value if buddy replication is not enabled.) Will not return null.

getSipSessionKeys

public java.util.Map<java.lang.String,java.lang.String> getSipSessionKeys()
Description copied from interface: DistributedCacheConvergedSipManager
Gets the ids of all sip sessions in the underlying cache.

Specified by:
getSipSessionKeys in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
Returns:
Map containing all of the sip session key of sessions in the cache (with any jvmRoute removed) as keys, and the identifier of the data owner for the session as value (or a null value if buddy replication is not enabled.) Will not return null.

removeSipApplicationSessionLocal

public void removeSipApplicationSessionLocal(java.lang.String key)

removeSipSessionLocal

public void removeSipSessionLocal(java.lang.String sipAppSessionKey,
                                  java.lang.String key)

removeSipApplicationSessionLocal

public void removeSipApplicationSessionLocal(java.lang.String key,
                                             java.lang.String dataOwner)
Description copied from interface: DistributedCacheConvergedSipManager
Remove a non-locally active sip application session from the distributed cache, but on this node only.

Specified by:
removeSipApplicationSessionLocal in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
Parameters:
key - the session's key
dataOwner - identifier of node where the session is active

removeSipSessionLocal

public void removeSipSessionLocal(java.lang.String sipAppSessionKey,
                                  java.lang.String key,
                                  java.lang.String dataOwner)
Description copied from interface: DistributedCacheConvergedSipManager
Remove a non-locally active sip session from the distributed cache, but on this node only.

Specified by:
removeSipSessionLocal in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
key - the session's key
dataOwner - identifier of node where the session is active

storeSipApplicationSessionData

public void storeSipApplicationSessionData(org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData sipApplicationSessionData)
Description copied from interface: DistributedCacheConvergedSipManager
Store or update a sip application session in the distributed cache.

Specified by:
storeSipApplicationSessionData in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>

storeSipSessionData

public void storeSipSessionData(org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData sipSessionData)
Description copied from interface: DistributedCacheConvergedSipManager
Store or update a sip session in the distributed cache.

Specified by:
storeSipSessionData in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>

storeSipApplicationSessionAttributes

public void storeSipApplicationSessionAttributes(org.jboss.cache.Fqn<java.lang.String> fqn,
                                                 org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData sessionData)
Description copied from interface: DistributedCacheConvergedSipManager
Store or update a sip application session in the distributed cache.

Specified by:
storeSipApplicationSessionAttributes in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>

storeSipSessionAttributes

public void storeSipSessionAttributes(org.jboss.cache.Fqn<java.lang.String> fqn,
                                      org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData sessionData)
Description copied from interface: DistributedCacheConvergedSipManager
Store or update a sip session in the distributed cache.

Specified by:
storeSipSessionAttributes in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>

sipApplicationSessionCreated

public void sipApplicationSessionCreated(java.lang.String key)
Description copied from interface: DistributedCacheConvergedSipManager
Notification to the distributed cache that a session has been newly created.

Specified by:
sipApplicationSessionCreated in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
Parameters:
key - the session's key

sipSessionCreated

public void sipSessionCreated(java.lang.String sipApplicationSessionKey,
                              java.lang.String sipSessionKey)
Description copied from interface: DistributedCacheConvergedSipManager
Notification to the distributed cache that a session has been newly created.

Specified by:
sipSessionCreated in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
Parameters:
sipApplicationSessionKey - the parent session's key
sipSessionKey - the session's key

getJBossCache

public org.jboss.cache.Cache getJBossCache()
Specified by:
getJBossCache in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>

getFieldFqn

public static org.jboss.cache.Fqn<java.lang.String> getFieldFqn(java.lang.String contextHostPath,
                                                                java.lang.String sipApplicationSessionKey,
                                                                java.lang.String attributeKey)

getFieldFqn

public static org.jboss.cache.Fqn<java.lang.String> getFieldFqn(java.lang.String contextHostPath,
                                                                java.lang.String sipApplicationSessionKey,
                                                                java.lang.String sipSessionKey,
                                                                java.lang.String attributeKey)

getAttributeFqn

public static org.jboss.cache.Fqn<java.lang.String> getAttributeFqn(java.lang.String contextHostPath,
                                                                    java.lang.String sipApplicationSessionKey)

getAttributeFqn

public static org.jboss.cache.Fqn<java.lang.String> getAttributeFqn(java.lang.String contextHostPath,
                                                                    java.lang.String sipApplicationSessionKey,
                                                                    java.lang.String sipSessionKey)

getSipApplicationSessionAttribute

public java.lang.Object getSipApplicationSessionAttribute(java.lang.String sipApplicationSessionKey,
                                                          java.lang.String key)
Description copied from interface: DistributedCacheConvergedSipManager
Get the value of the attribute with the given key from the given session.

Specified by:
getSipApplicationSessionAttribute in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
key - the attribute key
Returns:
the attribute value, or null

getSipApplicationSessionAttributeKeys

public java.util.Set<java.lang.String> getSipApplicationSessionAttributeKeys(java.lang.String sipApplicationSessionKey)
Description copied from interface: DistributedCacheConvergedSipManager
Obtain the attribute keys associated with this session.

Specified by:
getSipApplicationSessionAttributeKeys in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
Returns:
the attribute keys or an empty Set if none are found

getSipApplicationSessionAttributes

public java.util.Map<java.lang.String,java.lang.Object> getSipApplicationSessionAttributes(java.lang.String sipApplicationSessionKey)
Description copied from interface: DistributedCacheConvergedSipManager
Return all attributes associated with this session id.

Specified by:
getSipApplicationSessionAttributes in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
Returns:
the attributes, or any empty Map if none are found.

putSipApplicationSessionAttribute

public void putSipApplicationSessionAttribute(java.lang.String sipApplicationSessionKey,
                                              java.lang.String key,
                                              java.lang.Object value)
Description copied from interface: DistributedCacheConvergedSipManager
Stores the given value under the given key in the given session.

Specified by:
putSipApplicationSessionAttribute in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
key - the attribute key
value - the previous attribute value, or null

putSipApplicationSessionAttribute

public void putSipApplicationSessionAttribute(java.lang.String sipApplicationSessionKey,
                                              java.util.Map<java.lang.String,java.lang.Object> map)
Description copied from interface: DistributedCacheConvergedSipManager
Stores the given map of attribute key/value pairs in the given session.

Specified by:
putSipApplicationSessionAttribute in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>

removeSipApplicationSessionAttribute

public java.lang.Object removeSipApplicationSessionAttribute(java.lang.String sipApplicationSessionKey,
                                                             java.lang.String key)
Description copied from interface: DistributedCacheConvergedSipManager
Removes the attribute with the given key from the given session.

Specified by:
removeSipApplicationSessionAttribute in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
key - the attribute key
Returns:
the previous attribute value, or null

removeSipApplicationSessionAttributeLocal

public void removeSipApplicationSessionAttributeLocal(java.lang.String sipApplicationSessionKey,
                                                      java.lang.String key)
Description copied from interface: DistributedCacheConvergedSipManager
Removes the attribute with the given key from the given session, but only on the local node.

Specified by:
removeSipApplicationSessionAttributeLocal in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
key - the attribute key

removeSipApplicationSession

public void removeSipApplicationSession(java.lang.String sipApplicationSessionKey)
Description copied from interface: DistributedCacheConvergedSipManager
Globally remove a session from the distributed cache.

Specified by:
removeSipApplicationSession in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>

removeSipSession

public void removeSipSession(java.lang.String sipApplicationSessionKey,
                             java.lang.String sipSessionKey)
Description copied from interface: DistributedCacheConvergedSipManager
Globally remove a session from the distributed cache.

Specified by:
removeSipSession in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>

getSipSessionAttribute

public java.lang.Object getSipSessionAttribute(java.lang.String sipApplicationSessionKey,
                                               java.lang.String sipSessionKey,
                                               java.lang.String key)
Description copied from interface: DistributedCacheConvergedSipManager
Get the value of the attribute with the given key from the given session.

Specified by:
getSipSessionAttribute in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
key - the attribute key
Returns:
the attribute value, or null

getSipSessionAttributeKeys

public java.util.Set<java.lang.String> getSipSessionAttributeKeys(java.lang.String sipApplicationSessionKey,
                                                                  java.lang.String sipSessionKey)
Description copied from interface: DistributedCacheConvergedSipManager
Obtain the attribute keys associated with this session.

Specified by:
getSipSessionAttributeKeys in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
Returns:
the attribute keys or an empty Set if none are found

getSipSessionAttributes

public java.util.Map<java.lang.String,java.lang.Object> getSipSessionAttributes(java.lang.String sipApplicationSessionKey,
                                                                                java.lang.String sipSessionKey)
Description copied from interface: DistributedCacheConvergedSipManager
Return all attributes associated with this session id.

Specified by:
getSipSessionAttributes in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
Returns:
the attributes, or any empty Map if none are found.

putSipSessionAttribute

public void putSipSessionAttribute(java.lang.String sipApplicationSessionKey,
                                   java.lang.String sipSessionKey,
                                   java.lang.String key,
                                   java.lang.Object value)
Description copied from interface: DistributedCacheConvergedSipManager
Stores the given value under the given key in the given session.

Specified by:
putSipSessionAttribute in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
key - the attribute key
value - the previous attribute value, or null

putSipSessionAttribute

public void putSipSessionAttribute(java.lang.String sipApplicationSessionKey,
                                   java.lang.String sipSessionKey,
                                   java.util.Map<java.lang.String,java.lang.Object> map)
Description copied from interface: DistributedCacheConvergedSipManager
Stores the given map of attribute key/value pairs in the given session.

Specified by:
putSipSessionAttribute in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>

removeSipSessionAttribute

public java.lang.Object removeSipSessionAttribute(java.lang.String sipApplicationSessionKey,
                                                  java.lang.String sipSessionKey,
                                                  java.lang.String key)
Description copied from interface: DistributedCacheConvergedSipManager
Removes the attribute with the given key from the given session.

Specified by:
removeSipSessionAttribute in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
key - the attribute key
Returns:
the previous attribute value, or null

removeSipSessionAttributeLocal

public void removeSipSessionAttributeLocal(java.lang.String sipApplicationSessionKey,
                                           java.lang.String sipSessionKey,
                                           java.lang.String key)
Description copied from interface: DistributedCacheConvergedSipManager
Removes the attribute with the given key from the given session, but only on the local node.

Specified by:
removeSipSessionAttributeLocal in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>
key - the attribute key

setApplicationName

public void setApplicationName(java.lang.String applicationName)
Specified by:
setApplicationName in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>

setApplicationNameHashed

public void setApplicationNameHashed(java.lang.String applicationNameHashed)
Specified by:
setApplicationNameHashed in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>

getConvergedSessionAttributes

public java.util.Map<java.lang.String,java.lang.Object> getConvergedSessionAttributes(java.lang.String realId,
                                                                                      java.util.Map<java.lang.Object,java.lang.Object> distributedCacheData)
Overrides the superclass to pull in attributes via PojoCache API.

Specified by:
getConvergedSessionAttributes in interface DistributedCacheConvergedSipManager<org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData>


Copyright © 2010. All Rights Reserved.