private JmxDatacollectionConfig createJmxDataCollectionConfig(String serviceName, Rrd rrd) { final JmxDatacollectionConfig xmlJmxDatacollectionConfig = new JmxDatacollectionConfig(); final JmxCollection xmlJmxCollection = new JmxCollection(); xmlJmxCollection.setName("JSR160-" + serviceName); xmlJmxCollection.setRrd(rrd); xmlJmxDatacollectionConfig.addJmxCollection(xmlJmxCollection); return xmlJmxDatacollectionConfig; }
private JmxDatacollectionConfig createJmxDataCollectionConfig(String serviceName, Rrd rrd) { final JmxDatacollectionConfig xmlJmxDatacollectionConfig = new JmxDatacollectionConfig(); final JmxCollection xmlJmxCollection = new JmxCollection(); xmlJmxCollection.setName("JSR160-" + serviceName); xmlJmxCollection.setRrd(rrd); xmlJmxDatacollectionConfig.addJmxCollection(xmlJmxCollection); return xmlJmxDatacollectionConfig; }
/** * Clones a whole JmxCollection. Makes a deep copy! * * @param input * @return */ private static JmxCollection clone(JmxCollection input) { JmxCollection output = new JmxCollection(); output.setMaxVarsPerPdu(input.getMaxVarsPerPdu()); output.setName(input.getName()); output.setRrd(clone(input.getRrd())); for (final Mbean mbean : input.getMbeans()) { output.addMbean(clone(mbean)); } return output; }
/** * Clones a whole JmxCollection. Makes a deep copy! * * @param input * @return */ private static JmxCollection clone(JmxCollection input) { JmxCollection output = new JmxCollection(); output.setMaxVarsPerPdu(input.getMaxVarsPerPdu()); output.setName(input.getName()); output.setRrd(clone(input.getRrd())); for (final Mbean mbean : input.getMbeans()) { output.addMbean(clone(mbean)); } return output; }
clone.getJmxCollectionList().get(0).setName(uiModel.getServiceName()); return clone;
clone.getJmxCollectionList().get(0).setName(uiModel.getServiceName()); return clone;