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

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

本文整理了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

  1. @Override
  2. public boolean containsValue(Object value)
  3. {
  4. return node.getData().containsValue(value);
  5. }

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

  1. /**
  2. * getData returns a snapshot of the data.
  3. */
  4. @Override
  5. public Set<Map.Entry<K, V>> entrySet()
  6. {
  7. return node.getData().entrySet();
  8. }

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

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

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

  1. public Map<String, Object> getSipApplicationSessionAttributes(
  2. String sipApplicationSessionKey) {
  3. if (sipApplicationSessionKey == null) {
  4. @SuppressWarnings("unchecked")
  5. Map<String, Object> empty = Collections.EMPTY_MAP;
  6. return empty;
  7. }
  8. Fqn<String> fqn = delegate.getSipApplicationSessionFqn(combinedPath_,
  9. sipApplicationSessionKey);
  10. Node<Object, Object> node = getCache().getRoot().getChild(Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY));
  11. Map<Object, Object> rawData = node.getData();
  12. return getSessionAttributes(null, rawData);
  13. }

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

  1. public Map<String, Object> getSipSessionAttributes(
  2. String sipApplicationSessionKey,
  3. String sipSessionKey) {
  4. if (sipSessionKey == null) {
  5. @SuppressWarnings("unchecked")
  6. Map<String, Object> empty = Collections.EMPTY_MAP;
  7. return empty;
  8. }
  9. Fqn<String> fqn = delegate.getSipSessionFqn(combinedPath_,
  10. sipApplicationSessionKey, sipSessionKey);
  11. Node<Object, Object> node = getCache().getRoot().getChild(Fqn.fromString(fqn.toString() + "/" + AbstractJBossCacheService.ATTRIBUTE_KEY));
  12. Map<Object, Object> rawData = node.getData();
  13. return getSessionAttributes(null, rawData);
  14. }

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

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

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

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

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

  1. public void updateDialog(SIPDialog sipDialog) throws SipCacheException {
  2. final String dialogId = sipDialog.getDialogId();
  3. try {
  4. Node node = pojoCache.get(SipStackImpl.DIALOG_ROOT + dialogId + CACHE_SEPARATOR + METADATA);
  5. if(node != null) {
  6. final Map<String, Object> dialogMetaData = node.getData();
  7. final Object dialogAppData = pojoCache.get(SipStackImpl.DIALOG_ROOT + dialogId, APPDATA);
  8. final HASipDialog haSipDialog = (HASipDialog) sipDialog;
  9. super.updateDialog(haSipDialog, dialogMetaData, dialogAppData);
  10. } else {
  11. if(clusteredSipStack.getStackLogger().isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
  12. clusteredSipStack.getStackLogger().logDebug("key " + SipStackImpl.DIALOG_ROOT + dialogId + CACHE_SEPARATOR + METADATA + " not found in cache.");
  13. }
  14. }
  15. } catch (CacheException e) {
  16. throw new SipCacheException("A problem occured while retrieving the following dialog " + dialogId + " from the TreeCache", e);
  17. }
  18. }

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

  1. public void updateDialog(SIPDialog sipDialog) throws SipCacheException {
  2. final String dialogId = sipDialog.getDialogId();
  3. try {
  4. Node node = treeCache.get(SipStackImpl.DIALOG_ROOT + dialogId + CACHE_SEPARATOR + METADATA);
  5. if(node != null) {
  6. final Map<String, Object> dialogMetaData = node.getData();
  7. final Object dialogAppData = treeCache.get(SipStackImpl.DIALOG_ROOT + dialogId, APPDATA);
  8. final HASipDialog haSipDialog = (HASipDialog) sipDialog;
  9. super.updateDialog(haSipDialog, dialogMetaData, dialogAppData);
  10. } else {
  11. if(clusteredSipStack.getStackLogger().isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
  12. clusteredSipStack.getStackLogger().logDebug("key " + SipStackImpl.DIALOG_ROOT + dialogId + CACHE_SEPARATOR + METADATA + " not found in cache.");
  13. }
  14. }
  15. } catch (CacheException e) {
  16. throw new SipCacheException("A problem occured while retrieving the following dialog " + dialogId + " from the TreeCache", e);
  17. }
  18. }

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

  1. actualNode.getData();

相关文章