Search in sources :

Example 1 with Mbeans

use of org.opennms.xmlns.xsd.config.jmx_datacollection.Mbeans in project opennms by OpenNMS.

the class JmxDatacollectionConfiggenerator method createJmxDataCollectionConfig.

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.getJmxCollection().add(xmlJmxCollection);
    xmlJmxCollection.setMbeans(new Mbeans());
    return xmlJmxDatacollectionConfig;
}
Also used : JmxDatacollectionConfig(org.opennms.xmlns.xsd.config.jmx_datacollection.JmxDatacollectionConfig) JmxCollection(org.opennms.xmlns.xsd.config.jmx_datacollection.JmxCollection) Mbeans(org.opennms.xmlns.xsd.config.jmx_datacollection.Mbeans)

Aggregations

JmxCollection (org.opennms.xmlns.xsd.config.jmx_datacollection.JmxCollection)1 JmxDatacollectionConfig (org.opennms.xmlns.xsd.config.jmx_datacollection.JmxDatacollectionConfig)1 Mbeans (org.opennms.xmlns.xsd.config.jmx_datacollection.Mbeans)1