mirror of https://github.com/apache/activemq.git
made the destination map easier to navigate
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@389019 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d84e0521ea
commit
694120cd29
|
@ -113,6 +113,15 @@ public class DestinationMap {
|
|||
return queueRootNode.getChildCount();
|
||||
}
|
||||
|
||||
public DestinationMapNode getQueueRootNode() {
|
||||
return queueRootNode;
|
||||
}
|
||||
|
||||
public DestinationMapNode getTopicRootNode() {
|
||||
return topicRootNode;
|
||||
}
|
||||
|
||||
|
||||
// Implementation methods
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
package org.apache.activemq.filter;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
|
@ -50,6 +51,13 @@ public class DestinationMapNode {
|
|||
return (DestinationMapNode) childNodes.get(path);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the child nodes
|
||||
*/
|
||||
public Collection getChildren() {
|
||||
return childNodes.values();
|
||||
}
|
||||
|
||||
public int getChildCount() {
|
||||
return childNodes.size();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue