|
Sonic Management API | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IConnectionTreeNode
This interface represents a node in the tree of connection members
obtained via the IBrokerProxy getConnectionTree() method.
The node references basic information about the associated connection member
(IConnectionMemberInfo
),
along with any retrieved parents and children in the connection tree.
If the entire connection tree is retrieved there will be an empty root node whose child nodes represent the broker's connections. The nodes for these connections will typically have children representing sessions (or connection consumers), and so on.
com.sonicsw.mq.mgmtapi.runtime.IBrokerProxy#getConnectionTree(java.util.ArrayList, int)
Method Summary | |
---|---|
java.util.ArrayList |
getChildren()
Gets an ArrayList of child IConnectionTreeNodes. |
IConnectionMemberInfo |
getInfo()
Gets the IConnectionMemberInfo corresponding to this node. |
IConnectionTreeNode |
getParent()
Gets the parent IConnectionTreeNode for this member. |
void |
graftToParent(IConnectionTreeNode parent)
This 'advanced use' method grafts a sub-tree of connection members into a larger tree of connection members that has been fetched previously. |
Method Detail |
---|
java.util.ArrayList getChildren()
Note: getInfo().getChildRefs().size() will give the actual number of children regardless of whether or not the child connection tree nodes have been fetched.
IConnectionMemberInfo getInfo()
IConnectionTreeNode getParent()
void graftToParent(IConnectionTreeNode parent) throws ConnectionTreeUpdateException
getConnectionTree()
call (for the partial refresh) can then be grafted into the full tree.
graftToParent() does the following:
The parent must already know about the connection member associated with this node. In other words, it must already have a child node whose associated connection member reference matches that of this node. It's not possible to associate an arbitrary node with any parent.
parent
- parent node to attach this node to
ConnectionTreeUpdateException
- if the node is already attached to a parent, or if the connection member associated with this node is not recognised by the parent
|
Sonic Management API | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |