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
  • Interface Summary 
    Interface Description
    Constants  
  • Class Summary 
    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 Summary 
    Enum Description
    ConsolidationFunctionType
    Class ConsolidationFunctionType
    DataSourceType
    Class DataSourceType