Package org.wicketstuff.jmx.markup.html.table

Examples of org.wicketstuff.jmx.markup.html.table.JmxTreeNode


      if (!getDomainFilter().accept(domains[i]))
      {
        continue;
      }
      // create domain tree node and add to root
      JmxTreeNode domain = new JmxTreeNode(domains[i], null);
      rootNode.add(domain);
      // find all MBeans in the current domain
      List<ObjectName> mBeans = new ArrayList<ObjectName>(serverModel.getServer().queryNames(
          getObjectName(domains[i] + ":*"), null));
      Collections.sort(mBeans, new Comparator<ObjectName>()
View Full Code Here


   */
  private void add(JmxTreeNode parent, ObjectName name)
  {
    String n = name.getDomain() + ":" + name.getKeyPropertyListString();

    JmxTreeNode current = parent;
    String[] parts = n.split(",");

    // create nodes for all subpaths
    for (int level = 0; level < parts.length; level++)
    {
      ObjectName objectName = getObjectName(getPath(parts, level));
      // check whether node is already a child of the current node
      JmxTreeNode child = current.findNodeWithObjectName(objectName);
      if (child == null)
      {
        // node was not found, create a new node
        JmxMBeanWrapper mbean = new JmxMBeanWrapper(objectName, serverModel);
        child = new JmxTreeNode(objectName, mbean);
        current.add(child);

        addAttributes(child, mbean);
        addOperations(child, mbean);
      }
View Full Code Here

    if (operations.length == 0)
    {
      return;
    }

    JmxTreeNode tmp;
    if (groupAttributesAndOperations())
    {
      tmp = new JmxTreeNode("operations", mbean);
      current.add(tmp);
    }
    else
    {
      tmp = current;
    }

    // create nodes for all operations
    for (MBeanOperationInfo operation : operations)
    {
      tmp.add(new JmxTreeNode(operation, mbean));
    }
  }
View Full Code Here

    {
      return;
    }


    JmxTreeNode tmp;
    if (groupAttributesAndOperations())
    {
      tmp = new JmxTreeNode("attributes", mbean);
      current.add(tmp);
    }
    else
    {
      tmp = current;
    }

    // create nodes for all attributes
    for (MBeanAttributeInfo attribute : mbean.getAttributes())
    {
      tmp.add(new JmxTreeNode(attribute, mbean));
    }
  }
View Full Code Here

          state.expandNode(node);
        }
        state.selectNode(node, true);


        JmxTreeNode jmxNode = (JmxTreeNode)node;
        Object object = jmxNode.getUserObject();
        Panel panel = null;
        if (object instanceof ObjectName)
        {
          // DetailPanel.forObjectName
          panel = new ObjectNameDetailPanel(detailPanel.getId(), jmxNode
              .getJmxMBeanWrapper());
        }
        else if (object instanceof MBeanAttributeInfo)
        {
          // DetailPanel.forAttributeDetail
          panel = new AttributeDetailPanel(detailPanel.getId(), jmxNode
              .getJmxMBeanWrapper(), (MBeanAttributeInfo)object);
        }
        else if (object instanceof MBeanOperationInfo)
        {
          panel = new OperationDetailPanel(detailPanel.getId(), jmxNode
              .getJmxMBeanWrapper(), (MBeanOperationInfo)object);
        }
        else if (Objects.isEqual("attributes", object))
        {
          // DetailPanel.forAttributesOverview
          panel = new AttributesOverviewPanel(detailPanel.getId(), jmxNode
              .getJmxMBeanWrapper());
        }
        else if (Objects.isEqual("operations", object))
        {
          panel = new OperationsOverviewPanel(detailPanel.getId(), jmxNode
              .getJmxMBeanWrapper());
        }
        else
        {
          panel = (Panel)new EmptyPanel(detailPanel.getId()).setOutputMarkupId(true);
View Full Code Here

TOP

Related Classes of org.wicketstuff.jmx.markup.html.table.JmxTreeNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.