/** * {@inheritDoc} */ public String getId() { return key.toString(); }
/** * */ public void dumpSipApplicationSessions() { if(logger.isDebugEnabled()) { logger.debug("sip application sessions present in the session manager"); Enumeration<SipApplicationSessionKey> keys = sipApplicationSessions.keys(); while(keys.hasMoreElements()) { SipApplicationSessionKey sipApplicationSessionKey = keys.nextElement(); logger.debug(sipApplicationSessionKey.toString() + "/hashed_app_name=" + sipFactoryImpl.getSipApplicationDispatcher().getHashFromApplicationName(sipApplicationSessionKey.getApplicationName())); } } }
public void processRemoteSipApplicationSessionAttributeRemoval(SipApplicationSessionKey sipApplicationSessionKey, String attrKey) { ClusteredSipApplicationSession session = findLocalSipApplicationSession(sipApplicationSessionKey, false); if (session != null) { final String realId = sipApplicationSessionKey.toString(); boolean localCall = false; // call is due to remote event boolean localOnly = true; // don't call back into cache boolean notify = false; // SRV.10.7 gives us leeway // not to notify listeners, // which is safer // Ensure the correct TCL is in place ClassLoader prevTcl = Thread.currentThread() .getContextClassLoader(); try { Thread.currentThread().setContextClassLoader(tcl_); synchronized (session) { session.removeAttributeInternal(attrKey, localCall, localOnly, notify); } if (logger.isDebugEnabled()) log_ .debug("processRemoteAttributeRemoval: removed attribute " + attrKey + " from " + realId); } finally { Thread.currentThread().setContextClassLoader(prevTcl); } } }
final String realId = sipApplicationSessionKey.toString(); if (session == null) {
try { if (doTx) endTransaction(key.toString()); } finally { ConvergedSessionReplicationContext.finishSipCacheActivity(); unloadedSipApplicationSessions_.remove(key.toString()); stats_.updateLoadStats(key.toString(), elapsed); log_.debug("loadSession(): id= " + key.toString() + ", session=" + session); log_.debug("loadSession(): session " + key.toString() + " not found in distributed cache");
unloadedSipApplicationSessions_.remove(key.toString());