Search in sources :

Example 1 with Rrd

use of org.opennms.netmgt.config.collectd.jmx.Rrd in project opennms by OpenNMS.

the class JmxCollectionCloner method clone.

/**
 * Clones a Rrd object. Makes a deep copy!
 *
 * @param input
 * @return
 */
private static Rrd clone(Rrd input) {
    Rrd output = new Rrd();
    output.setStep(input.getStep());
    for (final String rra : input.getRraCollection()) {
        output.addRra(rra);
    }
    return output;
}
Also used : Rrd(org.opennms.netmgt.config.collectd.jmx.Rrd)

Aggregations

Rrd (org.opennms.netmgt.config.collectd.jmx.Rrd)1