コード例 #1
0
  private void addNodes(Mbean mbean) {
    List newNodeList = MBeansHelper.getMBeansTreeElements(mbean);
    newNodeList.add(mbean);
    String rootItemId = addNodes(newNodeList);

    // add optional comp attributes, if there are any
    if (mbean.getCompAttrib() != null && !mbean.getCompAttrib().isEmpty()) {
      for (CompAttrib eachCompAttrib : mbean.getCompAttrib()) {
        addNode(rootItemId, eachCompAttrib, false);
      }
    }
  }
コード例 #2
0
 private void add(Mbean bean) {
   String objectName = bean.getObjectname();
   if (Strings.isNullOrEmpty(objectName)) return;
   if (!objectName.contains(":")) return;
   addNodes(bean);
   mbeans.add(bean);
 }