See: Description
| Interface | Description |
|---|---|
| Constants | Constants for RRD file format definitions. |
| Class | Description |
|---|---|
| Archive | Instances of this class model an archive section of an RRD file. |
| CDPStatusBlock | Instances of this class model the consolidation data point status from an RRD file. |
| DataChunk | Models a chunk of result data from an RRDatabase. |
| DataSource | Instances of this class model a data source in an RRD file. |
| Header | Instances of this class model the header section of an RRD file. |
| PDPStatusBlock | Instances of this class model the primary data point status from an RRD file. |
| RRDatabase | Instances of this class model Round
Robin Database (RRD) files. |
| RRDFile | This class is used read information from an RRD file. |
| UnivalArray | This class is used to read a unival from a file unival is a rrdtool type, defined in rrd_format.h |
| Enum | Description |
|---|---|
| ConsolidationFunctionType | Class ConsolidationFunctionType |
| DataSourceType | Class DataSourceType |
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));
}