See: Description
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.
|
Enum | Description |
---|---|
ConsolidationFunctionType |
Class ConsolidationFunctionType
|
DataSourceType |
Class DataSourceType
|
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 leastBut 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)); }
Copyright © 2016. All rights reserved.