Modifier and Type | Class and Description |
---|---|
private static class | |
private static class | |
private static class | |
private static class |
Modifier and Type | Field and Description |
---|---|
private boolean | |
private MBeansTab | |
private Map | |
private static final List | |
private static boolean | |
private static boolean |
Access | Constructor and Description |
---|---|
public | |
public |
Modifier and Type | Method and Description |
---|---|
private synchronized void | addChildNode(DefaultMutableTreeNode parent, DefaultMutableTreeNode child, int index)
This method adds the child to the specified parent node at specific index. |
private synchronized void | addChildNode(DefaultMutableTreeNode parent, DefaultMutableTreeNode child)
This method adds the child to the specified parent node. |
public synchronized void | |
public synchronized void | |
private synchronized void | |
public void | |
private synchronized void | |
private DefaultMutableTreeNode | |
private DefaultMutableTreeNode | |
private Object | |
private DefaultMutableTreeNode | createSubDnNode(XTree.
Creates the node corresponding to a subDn, i.e. a non-MBean intermediate node. |
private static Map | extractKeyValuePairs(String props, ObjectName mbean)
Parses the MBean ObjectName comma-separated properties string and puts the individual key/value pairs into the map. |
private static String | getKeyPropertyListString(ObjectName mbean)
Returns the ordered key property list that will be used to build the MBean tree. |
private static boolean | |
public boolean | hasMetadataNodes(DefaultMutableTreeNode node)
Returns true if any of the children nodes is an MBean metadata node. |
private boolean | hasNonMetadataNodes(DefaultMutableTreeNode node)
Returns true if any of the children nodes is a non MBean metadata node. |
private boolean | |
public boolean | isMetadataNode(DefaultMutableTreeNode node)
Returns true if the given node is an MBean metadata node. |
private static boolean | |
public synchronized void | removeAll()
Overrides java. |
private synchronized void | |
public synchronized void | |
private void | removeMetadataNodes(DefaultMutableTreeNode node)
Remove the metadata nodes associated with a given MBean node. |
private DefaultMutableTreeNode | removeParentFromView(XTree.
Removes only the parent nodes which are non MBean and leaf. |
keyValueView | back to summary |
---|---|
private boolean keyValueView |
mbeansTab | back to summary |
---|---|
private MBeansTab mbeansTab |
nodes | back to summary |
---|---|
private Map<String, DefaultMutableTreeNode> nodes |
orderedKeyPropertyList | back to summary |
---|---|
private static final List<String> orderedKeyPropertyList |
treeView | back to summary |
---|---|
private static boolean treeView |
treeViewInit | back to summary |
---|---|
private static boolean treeViewInit |
XTree | back to summary |
---|---|
public XTree(MBeansTab mbeansTab) |
XTree | back to summary |
---|---|
public XTree(TreeNode root, MBeansTab mbeansTab) |
addChildNode | back to summary |
---|---|
private synchronized void addChildNode(DefaultMutableTreeNode parent, DefaultMutableTreeNode child, int index) This method adds the child to the specified parent node at specific index. |
addChildNode | back to summary |
---|---|
private synchronized void addChildNode(DefaultMutableTreeNode parent, DefaultMutableTreeNode child) This method adds the child to the specified parent node. The index where the child is to be added depends on the child node being Comparable or not. If the child node is not Comparable then it is added at the end, i.e. right after the current parent's children. |
addMBeansToView | back to summary |
---|---|
public synchronized void addMBeansToView(Set<ObjectName> mbeans) |
addMBeanToView | back to summary |
---|---|
public synchronized void addMBeanToView(ObjectName mbean) |
addMBeanToView | back to summary |
---|---|
private synchronized void addMBeanToView(ObjectName mbean, XMBean xmbean, XTree. |
addMetadataNodes | back to summary |
---|---|
public void addMetadataNodes(DefaultMutableTreeNode node) |
changeNodeValue | back to summary |
---|---|
private synchronized void changeNodeValue(DefaultMutableTreeNode node, XNodeInfo nodeValue) |
createDnNode | back to summary |
---|---|
private DefaultMutableTreeNode createDnNode(XTree. Creates the node corresponding to the whole Dn, i.e. an MBean. |
createDomainNode | back to summary |
---|---|
private DefaultMutableTreeNode createDomainNode(XTree. Creates the domain node. |
createNodeValue | back to summary |
---|---|
private Object createNodeValue(XMBean xmbean, XTree. |
createSubDnNode | back to summary |
---|---|
private DefaultMutableTreeNode createSubDnNode(XTree. Creates the node corresponding to a subDn, i.e. a non-MBean intermediate node. |
extractKeyValuePairs | back to summary |
---|---|
private static Map Parses the MBean ObjectName comma-separated properties string and puts the individual key/value pairs into the map. Key order in the properties string is preserved by the map. |
getKeyPropertyListString | back to summary |
---|---|
private static String getKeyPropertyListString(ObjectName mbean) Returns the ordered key property list that will be used to build the MBean tree. If the "com.sun.tools.jconsole.mbeans.keyPropertyList" system property is not specified, then the ordered key property list used to build the MBean tree will be the one returned by the method ObjectName.getKeyPropertyListString() with "type" as first key, and "j2eeType" as second key, if present. If any of the keys specified in the comma-separated key property list does not apply to the given MBean then it will be discarded. |
getTreeViewValue | back to summary |
---|---|
private static boolean getTreeViewValue() |
hasMetadataNodes | back to summary |
---|---|
public boolean hasMetadataNodes(DefaultMutableTreeNode node) Returns true if any of the children nodes is an MBean metadata node. |
hasNonMetadataNodes | back to summary |
---|---|
private boolean hasNonMetadataNodes(DefaultMutableTreeNode node) Returns true if any of the children nodes is a non MBean metadata node. |
isKeyValueView | back to summary |
---|---|
private boolean isKeyValueView() |
isMetadataNode | back to summary |
---|---|
public boolean isMetadataNode(DefaultMutableTreeNode node) Returns true if the given node is an MBean metadata node. |
isTreeView | back to summary |
---|---|
private static boolean isTreeView() |
removeAll | back to summary |
---|---|
public synchronized void removeAll() Overrides java. This method removes all the displayed nodes from the tree, but does not affect actual MBeanServer contents.
|
removeChildNode | back to summary |
---|---|
private synchronized void removeChildNode(DefaultMutableTreeNode child) This method removes the node from its parent |
removeMBeanFromView | back to summary |
---|---|
public synchronized void removeMBeanFromView(ObjectName mbean) |
removeMetadataNodes | back to summary |
---|---|
private void removeMetadataNodes(DefaultMutableTreeNode node) Remove the metadata nodes associated with a given MBean node. |
removeParentFromView | back to summary |
---|---|
private DefaultMutableTreeNode removeParentFromView(XTree. Removes only the parent nodes which are non MBean and leaf. This method assumes the child nodes have been removed before. |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public int | compareTo(DefaultMutableTreeNode
the object to be compared. node)Implements java. |
ComparableDefaultMutableTreeNode | back to summary |
---|---|
private ComparableDefaultMutableTreeNode() |
compareTo | back to summary |
---|---|
public int compareTo(DefaultMutableTreeNode node) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
|
Modifier and Type | Field and Description |
---|---|
private String | |
private String | |
private String | |
private ObjectName | |
private List |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public int | compareTo(XTree.
the object to be compared. dnImplements java. |
private void | |
public String | |
public String | |
public String | |
public String | |
public ObjectName | |
public XTree. | |
public int | |
public String |
domain | back to summary |
---|---|
private String domain |
hashDn | back to summary |
---|---|
private String hashDn |
keyPropertyList | back to summary |
---|---|
private String keyPropertyList |
mbean | back to summary |
---|---|
private ObjectName mbean |
tokens | back to summary |
---|---|
private List<XTree. |
Dn | back to summary |
---|---|
public Dn(ObjectName mbean) |
compareTo | back to summary |
---|---|
public int compareTo(XTree. Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that |
computeHashDn | back to summary |
---|---|
private void computeHashDn() |
getDomain | back to summary |
---|---|
public String getDomain() |
getHashDn | back to summary |
---|---|
public String getHashDn() |
getHashKey | back to summary |
---|---|
public String getHashKey(XTree. |
getKeyPropertyList | back to summary |
---|---|
public String getKeyPropertyList() |
getObjectName | back to summary |
---|---|
public ObjectName getObjectName() |
getToken | back to summary |
---|---|
public XTree. |
getTokenCount | back to summary |
---|---|
public int getTokenCount() |
toString | back to summary |
---|---|
public String toString() Overrides java. Doc from java. Returns a string representation of the object. |
Modifier and Type | Field and Description |
---|---|
private final XMBean | |
private final DefaultTreeModel | |
private final DefaultMutableTreeNode |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
private void | addMBeanInfoNodes(DefaultTreeModel tree, DefaultMutableTreeNode node, XMBean mbean, MBeanInfo mbeanInfo, Boolean isBroadcaster)
|
public Object[] | doInBackground()
Implements abstract javax. |
protected void | done()
Overrides javax. doInBackground
method is finished.
|
mbean | back to summary |
---|---|
private final XMBean mbean |
model | back to summary |
---|---|
private final DefaultTreeModel model |
node | back to summary |
---|---|
private final DefaultMutableTreeNode node |
MBeanInfoNodesSwingWorker | back to summary |
---|---|
public MBeanInfoNodesSwingWorker(DefaultTreeModel model, DefaultMutableTreeNode node, XMBean mbean) |
addMBeanInfoNodes | back to summary |
---|---|
private void addMBeanInfoNodes(DefaultTreeModel tree, DefaultMutableTreeNode node, XMBean mbean, MBeanInfo mbeanInfo, Boolean isBroadcaster) |
doInBackground | back to summary |
---|---|
public Object[] doInBackground() throws InstanceNotFoundException, IntrospectionException, ReflectionException, IOException Implements abstract javax. Doc from javax. Computes a result, or throws an exception if unable to do so. Note that this method is executed only once. Note this method is executed in a background thread. |
done | back to summary |
---|---|
protected void done() Overrides javax. Doc from javax. Executed on the Event Dispatch Thread after the
|
Modifier and Type | Field and Description |
---|---|
private String | |
private String | |
private String | |
private String |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
private void | |
public String | |
public String | |
public String | |
public String |
key | back to summary |
---|---|
private String key |
tokenType | back to summary |
---|---|
private String tokenType |
tokenValue | back to summary |
---|---|
private String tokenValue |
value | back to summary |
---|---|
private String value |
Token | back to summary |
---|---|
public Token(String tokenType, String tokenValue) |
buildKeyValue | back to summary |
---|---|
private void buildKeyValue() |
getKey | back to summary |
---|---|
public String getKey() |
getTokenType | back to summary |
---|---|
public String getTokenType() |
getTokenValue | back to summary |
---|---|
public String getTokenValue() |
getValue | back to summary |
---|---|
public String getValue() |