Package org.rrd4j.core.jrrd
package org.rrd4j.core.jrrd
This package provides read-only access to natives RRD file.
Currently this can read RRD files that were generated big or little endian machines, 32 or 64 bits word, and 4 or 8 bytes alignment. So it's know to work on a least- x86 Linux
- x86_64 Linux
- x86_64 Solaris
- sparc v8 (32 bits) Solaris
- sparc v9 (64 bits) Solaris
But it should work on other environments too.
Typical usage:
RRDatabase db = new RRDatabase("native.rrd"); RrdGraphDef() gd = RrdGraphDef(); Calendar endCal = Calendar.getInstance(); endCal.set(Calendar.MILLISECOND, 0); Calendar startCal = (Calendar) endCal.clone(); startCal.add(Calendar.DATE, -1); DataChunk chunk = db.getData(ConsolidationFunctionType.AVERAGE, startCal.getTime(), endCal.getTime(), 1L); for(String name: db.getDataSourcesName()) { gd.datasource(name, chunk.toPlottable(name)); }
- Version:
- $Revision: 1.1 $
- Author:
- Ciaran Treanor
-
ClassDescriptionInstances of this class model an archive section of an RRD file.Instances of this class model the consolidation data point status from an RRD file.Class ConsolidationFunctionTypeModels a chunk of result data from an RRDatabase.Instances of this class model a data source in an RRD file.Class DataSourceTypeInstances of this class model the header section of an RRD file.Instances of this class model the primary data point status from an RRD file.Instances of this class model Round Robin Database (RRD) files.This class is used read information from an RRD file.This class is used to read a unival from a file unival is a rrdtool type, defined in rrd_format.h