public String getRegionName() { return regionFqn == null ? null : regionFqn.toString(); }
public void fetchPartialState(List<Address> sources, Fqn subtree) throws Exception { if (subtree == null) { throw new IllegalArgumentException("Cannot fetch partial state. Null subtree."); } fetchPartialState(sources, subtree.toString()); }
@NodeCreated public void nodeCreated(NodeCreatedEvent event) { if(logger.isDebugEnabled()) { logger.debug("following node created " + event.getFqn().toString()); } }
public void removeSipApplicationSessionAttributeLocal( String sipApplicationSessionKey, String key) { Fqn<String> fqn = delegate.getSipApplicationSessionFqn(combinedPath_, sipApplicationSessionKey); if (log_.isTraceEnabled()) { log_.trace("Remove attribute from distributed store. Fqn: " + Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY) + " key: " + key); } cacheWrapper_.removeLocal(Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY), key); }
public void putSipApplicationSessionAttribute(String sipApplicationSessionKey, Map<String, Object> map) { // Duplicate the map with marshalled values Map<Object, Object> marshalled = new HashMap<Object, Object>(map.size()); for (Map.Entry<String, Object> entry : map.entrySet()) { marshalled .put(entry.getKey(), getMarshalledValue(entry.getValue())); } Fqn<String> fqn = delegate.getSipApplicationSessionFqn(combinedPath_, sipApplicationSessionKey); cacheWrapper_.put(Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY), marshalled); }
public void removeSipSessionAttributeLocal( String sipApplicationSessionKey, String sipSessionKey, String key) { Fqn<String> fqn = delegate.getSipSessionFqn(combinedPath_, sipApplicationSessionKey, sipSessionKey); if (log_.isTraceEnabled()) { log_.trace("Remove attribute from distributed store. Fqn: " + Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY) + " key: " + key); } cacheWrapper_.removeLocal(Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY), key); }
public void putSipSessionAttribute(String sipApplicationSessionKey, String sipSessionKey, Map<String, Object> map) { // Duplicate the map with marshalled values Map<Object, Object> marshalled = new HashMap<Object, Object>(map.size()); for (Map.Entry<String, Object> entry : map.entrySet()) { marshalled .put(entry.getKey(), getMarshalledValue(entry.getValue())); } Fqn<String> fqn = delegate.getSipSessionFqn(combinedPath_, sipApplicationSessionKey, sipSessionKey); cacheWrapper_.put(Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY), marshalled); }
public Object removeSipApplicationSessionAttribute( String sipApplicationSessionKey, String key) { Fqn<String> fqn = delegate.getSipApplicationSessionFqn(combinedPath_, sipApplicationSessionKey); if (log_.isTraceEnabled()) { log_.trace("Remove attribute from distributed store. Fqn: " + Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY) + " key: " + key); } return getUnMarshalledValue(cacheWrapper_.remove(Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY), key)); }
public Object removeSipSessionAttribute( String sipApplicationSessionKey, String sipSessionKey, String key) { Fqn<String> fqn = delegate.getSipSessionFqn(combinedPath_, sipApplicationSessionKey, sipSessionKey); if (log_.isTraceEnabled()) { log_.trace("Remove attribute from distributed store. Fqn: " + Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY) + " key: " + key); } return getUnMarshalledValue(cacheWrapper_.remove(Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY), key)); }
public void nodeLoaded(Fqn fqn) { if (clusteredSipStack.getStackLogger().isLoggingEnabled(StackLogger.TRACE_DEBUG) && fqn.toString().indexOf(SipStackImpl.DIALOG_ROOT) != -1) { clusteredSipStack.getStackLogger().logDebug("sipStack " + clusteredSipStack + " Node loaded : " + fqn); } }
public void nodeCreated(Fqn fqn) { if (clusteredSipStack.getStackLogger().isLoggingEnabled(StackLogger.TRACE_DEBUG) && fqn.toString().indexOf(SipStackImpl.DIALOG_ROOT) != -1) { clusteredSipStack.getStackLogger().logDebug("sipStack " + clusteredSipStack + " Node created : " + fqn); } }
public void nodeEvicted(Fqn fqn) { if (clusteredSipStack.getStackLogger().isLoggingEnabled(StackLogger.TRACE_DEBUG) && fqn.toString().indexOf(SipStackImpl.DIALOG_ROOT) != -1) { clusteredSipStack.getStackLogger().logDebug("sipStack " + clusteredSipStack + " Node evicted : " + fqn); } }
public void nodeModified(Fqn fqn) { if (clusteredSipStack.getStackLogger().isLoggingEnabled(StackLogger.TRACE_DEBUG) && fqn.toString().indexOf(SipStackImpl.DIALOG_ROOT) != -1) { clusteredSipStack.getStackLogger().logDebug("sipStack " + clusteredSipStack + " Node modified : " + fqn); } }
public void nodeRemoved(Fqn fqn) { if (clusteredSipStack.getStackLogger().isLoggingEnabled(StackLogger.TRACE_DEBUG) && fqn.toString().indexOf(SipStackImpl.DIALOG_ROOT) != -1) { clusteredSipStack.getStackLogger().logDebug("sipStack " + clusteredSipStack + " Node removed : " + fqn); } // Fix for Issue 1418 jain sip ha does not removes dialog in local stack // http://code.google.com/p/mobicents/issues/detail?id=1418 if(fqn.size() > 1) { clusteredSipStack.remoteDialogRemoval(fqn.get(1).toString()); } }
public void putSipSessionAttribute(String sipApplicationSessionKey, String sipSessionKey, String key, Object value) { Fqn<String> fqn = delegate.getSipSessionFqn(combinedPath_, sipApplicationSessionKey, sipSessionKey); cacheWrapper_.put(Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY), key, getMarshalledValue(value)); }
public Object getSipSessionAttribute( String sipApplicationSessionKey, String sipSessionKey, String key) { Fqn<String> fqn = delegate.getSipSessionFqn(combinedPath_, sipApplicationSessionKey, sipSessionKey); return getUnMarshalledValue(cacheWrapper_.get(Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY), key)); }
public Object getSipApplicationSessionAttribute( String sipApplicationSessionKey, String key) { Fqn<String> fqn = delegate.getSipApplicationSessionFqn(combinedPath_, sipApplicationSessionKey); return getUnMarshalledValue(cacheWrapper_.get(Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY), key)); }
public void putSipApplicationSessionAttribute(String sipApplicationSessionKey, String key, Object value) { Fqn<String> fqn = delegate.getSipApplicationSessionFqn(combinedPath_, sipApplicationSessionKey); cacheWrapper_.put(Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY), key, getMarshalledValue(value)); }
@Override public void nodeCreated(Fqn fqn) { boolean local = ConvergedSessionReplicationContext.isSipLocallyActive(); boolean isBuddy = isBuddyFqn(fqn); int size = fqn.size(); if(isFqnSessionRootSized(size, isBuddy) && isFqnForOurSipapp(fqn, isBuddy)) { logger.debug("following node created " + fqn.toString() + " with name " +fqn.getName()); } if (!fieldBased_ && local) return; }
public Map<String, Object> getSipApplicationSessionAttributes( String sipApplicationSessionKey) { if (sipApplicationSessionKey == null) { @SuppressWarnings("unchecked") Map<String, Object> empty = Collections.EMPTY_MAP; return empty; } Fqn<String> fqn = delegate.getSipApplicationSessionFqn(combinedPath_, sipApplicationSessionKey); Node<Object, Object> node = getCache().getRoot().getChild(Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY)); Map<Object, Object> rawData = node.getData(); return getSessionAttributes(null, rawData); }