RrdExportDef expDef = new RrdExportDef(1420502400, 1422883200);
expDef.datasource(dsName, rrdFile.getAbsolutePath(), dsName, "AVERAGE");
RrdExport exp = new RrdExport(expDef);
ExportData data = exp.fetch(resolution);
data.exportXml(String.format("%s.old.xml", rrdName));
FetchRequest request = rrddb.createFetchRequest(ARC_TYPE, 1420502400, 1422883200, resolution);
FetchData fetchData = request.fetchData();
fetchData.exportXml(format("d:/temp/%s.xml", path));
File rrdXmlFile = File.createTempFile(fileDetails.getFile().getName(), ".xml");
RrdDb rrddb = new RrdDb(fileDetails.getFile().getAbsolutePath());
rrddb.dumpXml(rrdXmlFile.getAbsolutePath());
rrddb.close();
org.rrd4j.core.RrdDb mongoRrdDb = new org.rrd4j.core.RrdDb(fileDetails.getRelativePath(), rrdXmlFile.getCanonicalPath(), factory);
mongoRrdDb.close();
--
You received this message because you are subscribed to the Google Groups "rrd4j-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rrd4j-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
for (long resolution = 1; resolution < 1000000; resolution++){
long endTime = new Long(1422883200/resolution)*resolution;
long startTime = new Long(1420502400/resolution)*resolution;
FetchRequest request = rrddb.createFetchRequest(ARC_TYPE, startTime, endTime, resolution);
}