org.jboss.cache.Node.getData()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(5.7k)|赞(0)|评价(0)|浏览(92)

本文整理了Java中org.jboss.cache.Node.getData()方法的一些代码示例,展示了Node.getData()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.getData()方法的具体详情如下:
包路径:org.jboss.cache.Node
类名称:Node
方法名:getData

Node.getData介绍

[英]Returns a map containing the data in this Node.
[中]返回包含此节点中数据的映射。

代码示例

代码示例来源:origin: org.jboss.cache/jbosscache-core

@Override
public boolean containsValue(Object value)
{
  return node.getData().containsValue(value);
}

代码示例来源:origin: org.jboss.cache/jbosscache-core

/**
 * getData returns a snapshot of the data.
 */
@Override
public Set<Map.Entry<K, V>> entrySet()
{
  return node.getData().entrySet();
}

代码示例来源:origin: org.mobicents.core/mobicents-core-jar

Node childNode = (Node) it.next();
Object obj = childNode.getData().get(PROFILEID_LOOKUP_NAME);

代码示例来源:origin: org.mobicents.servlet.sip.containers/sip-servlets-jboss5-ha-server-cache

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);
}

代码示例来源:origin: org.mobicents.servlet.sip.containers/sip-servlets-jboss5-ha-server-cache

public Map<String, Object> getSipSessionAttributes(
    String sipApplicationSessionKey,
    String sipSessionKey) {
  if (sipSessionKey == null) {
    @SuppressWarnings("unchecked")
    Map<String, Object> empty = Collections.EMPTY_MAP;
    return empty;
  }
  Fqn<String> fqn = delegate.getSipSessionFqn(combinedPath_,
      sipApplicationSessionKey, sipSessionKey);
  Node<Object, Object> node = getCache().getRoot().getChild(Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY));
  Map<Object, Object> rawData = node.getData();
  return getSessionAttributes(null, rawData);
}

代码示例来源:origin: org.mobicents.ha.javax.sip/mobicents-jain-sip-jboss4

public SIPDialog getDialog(String dialogId) throws SipCacheException {		
  try {
    Node node = treeCache.get(SipStackImpl.DIALOG_ROOT + dialogId + CACHE_SEPARATOR + METADATA);
    if(node != null) {
      final Map<String, Object> dialogMetaData = node.getData();
      final Object dialogAppData = treeCache.get(SipStackImpl.DIALOG_ROOT + dialogId, APPDATA);
      
      return super.createDialog(dialogId, dialogMetaData, dialogAppData);
    } else {
      if(clusteredSipStack.getStackLogger().isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
        clusteredSipStack.getStackLogger().logDebug("key " + SipStackImpl.DIALOG_ROOT + dialogId + CACHE_SEPARATOR + METADATA + " not found in cache.");
      }
      return null;
    }
  } catch (CacheException e) {
    throw new SipCacheException("A problem occured while retrieving the following dialog " + dialogId + " from the TreeCache", e);
  } 
}

代码示例来源:origin: org.mobicents.ha.javax.sip/mobicents-jain-sip-jboss4

public SIPDialog getDialog(String dialogId) throws SipCacheException {		
  try {
    Node node = pojoCache.get(SipStackImpl.DIALOG_ROOT + dialogId + CACHE_SEPARATOR + METADATA);
    if(node != null) {
      final Map<String, Object> dialogMetaData = node.getData();
      final Object dialogAppData = pojoCache.get(SipStackImpl.DIALOG_ROOT + dialogId, APPDATA);
      
      return super.createDialog(dialogId, dialogMetaData, dialogAppData);
    } else {
      if(clusteredSipStack.getStackLogger().isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
        clusteredSipStack.getStackLogger().logDebug("key " + SipStackImpl.DIALOG_ROOT + dialogId + CACHE_SEPARATOR + METADATA + " not found in cache.");
      }
      return null;
    }
  } catch (CacheException e) {
    throw new SipCacheException("A problem occured while retrieving the following dialog " + dialogId + " from the TreeCache", e);
  } 
}

代码示例来源:origin: org.mobicents.ha.javax.sip/mobicents-jain-sip-jboss4

public void updateDialog(SIPDialog sipDialog) throws SipCacheException {
  final String dialogId = sipDialog.getDialogId();
  try {			
    Node node = pojoCache.get(SipStackImpl.DIALOG_ROOT + dialogId + CACHE_SEPARATOR + METADATA);
    if(node != null) {
      final Map<String, Object> dialogMetaData = node.getData();
      final Object dialogAppData = pojoCache.get(SipStackImpl.DIALOG_ROOT + dialogId, APPDATA);
      final HASipDialog haSipDialog = (HASipDialog) sipDialog;
      super.updateDialog(haSipDialog, dialogMetaData, dialogAppData);
    } else {
      if(clusteredSipStack.getStackLogger().isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
        clusteredSipStack.getStackLogger().logDebug("key " + SipStackImpl.DIALOG_ROOT + dialogId + CACHE_SEPARATOR + METADATA + " not found in cache.");
      }
    }
  } catch (CacheException e) {
    throw new SipCacheException("A problem occured while retrieving the following dialog " + dialogId + " from the TreeCache", e);
  }
}

代码示例来源:origin: org.mobicents.ha.javax.sip/mobicents-jain-sip-jboss4

public void updateDialog(SIPDialog sipDialog) throws SipCacheException {
  final String dialogId = sipDialog.getDialogId();
  try {			
    Node node = treeCache.get(SipStackImpl.DIALOG_ROOT + dialogId + CACHE_SEPARATOR + METADATA);
    if(node != null) {
      final Map<String, Object> dialogMetaData = node.getData();
      final Object dialogAppData = treeCache.get(SipStackImpl.DIALOG_ROOT + dialogId, APPDATA);
      final HASipDialog haSipDialog = (HASipDialog) sipDialog;
      super.updateDialog(haSipDialog, dialogMetaData, dialogAppData);
    } else {
      if(clusteredSipStack.getStackLogger().isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
        clusteredSipStack.getStackLogger().logDebug("key " + SipStackImpl.DIALOG_ROOT + dialogId + CACHE_SEPARATOR + METADATA + " not found in cache.");
      }
    }
  } catch (CacheException e) {
    throw new SipCacheException("A problem occured while retrieving the following dialog " + dialogId + " from the TreeCache", e);
  }
}

代码示例来源:origin: org.jboss.cache/jbosscache-core

actualNode.getData();

相关文章