本文整理了Java中org.jboss.cache.Node.getChildren()
方法的一些代码示例,展示了Node.getChildren()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.getChildren()
方法的具体详情如下:
包路径:org.jboss.cache.Node
类名称:Node
方法名:getChildren
[英]Returns an immutable set of children nodes.
[中]返回一组不可变的子节点。
代码示例来源:origin: Verigreen/verigreen
private void populateValues(Node<String, Object> cache, ArrayList<V> list) {
Set<Node<String, Object>> children = cache.getChildren();
for (Node<String, Object> node : children) {
Iterator<String> iterator = node.getKeys().iterator();
if (iterator.hasNext()) {
String key = iterator.next();
V value = RuntimeUtils.<V> cast(node.get(key));
list.add(getClonedValue(value));
}
}
}
代码示例来源:origin: org.mobicents.servlet.sip.containers/sip-servlets-jboss5-ha-server-cache
public Map<String, String> getSipApplicationSessionKeys() {
Map<String, String> result = new HashMap<String, String>();
Fqn<String> sipappFqn = getSipappFqn();
Node<Object, Object> bbRoot = jBossCacheService.getCache().getRoot()
.getChild(jBossCacheService.BUDDY_BACKUP_FQN);
if (bbRoot != null) {
Set<Node<Object, Object>> owners = bbRoot.getChildren();
if (owners != null) {
for (Node<Object, Object> owner : owners) {
@SuppressWarnings("unchecked")
Node sipRoot = owner.getChild(sipappFqn);
if (sipRoot != null) {
@SuppressWarnings("unchecked")
Set<String> ids = sipRoot.getChildrenNames();
storeSipApplicationSessionOwners(ids, (String) owner.getFqn()
.getLastElement(), result);
}
}
}
}
storeSipApplicationSessionOwners(jBossCacheService.getChildrenNames(sipappFqn), null,
result);
return result;
}
代码示例来源:origin: org.mobicents.servlet.sip.containers/sip-servlets-jboss5-ha-server-cache
public Map<String, String> getSipSessionKeys() {
Map<String, String> result = new HashMap<String, String>();
Fqn<String> sipappFqn = getSipappFqn();
Node<Object, Object> bbRoot = jBossCacheService.getCache().getRoot()
.getChild(jBossCacheService.BUDDY_BACKUP_FQN);
if (bbRoot != null) {
Set<Node<Object, Object>> owners = bbRoot.getChildren();
if (owners != null) {
for (Node<Object, Object> owner : owners) {
@SuppressWarnings("unchecked")
Node sipRoot = owner.getChild(sipappFqn);
if (sipRoot != null) {
@SuppressWarnings("unchecked")
Set<String> ids = sipRoot.getChildrenNames();
storeSipSessionOwners(ids, (String) owner.getFqn()
.getLastElement(), result);
}
}
}
}
storeSipSessionOwners(jBossCacheService.getChildrenNames(sipappFqn), null,
result);
return result;
}
代码示例来源:origin: org.mobicents.core/mobicents-core-jar
return;
Map indexedAttributeNames = (Map) profileTableIndexesAttribute
.getChildren();
if (indexedAttributeNames != null) {
Iterator indexIt = indexedAttributeNames.keySet().iterator();
代码示例来源:origin: org.mobicents.core/mobicents-core-jar
Map profiles = childNode.getChildren();
if (profiles != null) {
Iterator profilesIt = profiles.values().iterator();
代码示例来源:origin: org.mobicents.core/mobicents-core-jar
Map childrens = profileTableNode.getChildren();
if (childrens != null) {
Iterator it = childrens.values().iterator();
代码示例来源:origin: org.mobicents.core/mobicents-core-jar
Node profileTableNode = transactionManager.getNode(tcache,
profileTableKey);
Map children = profileTableNode.getChildren();
if (children != null) {
if (children.size() >= 1) {
代码示例来源:origin: org.mobicents.core/mobicents-core-jar
logger.debug("getChildren (" + tcache + "," + fqn + ")"
+ getFileAndLine());
return node.getChildren();
} catch (TimeoutException ex) {
logger.error(this.displayOngoingSleeTransactions());
内容来源于网络,如有侵权,请联系作者删除!