public class

Header

extends Object
java.lang.Object
   ↳ org.rrd4j.core.jrrd.Header

Class Overview

Instances of this class model the header section of an RRD file.

Summary

Constants
int CF_NAM_SIZE
String COOKIE
int DST_SIZE
int DS_NAM_SIZE
double FLOAT_COOKIE
byte[] FLOAT_COOKIE_BIG_ENDIAN
byte[] FLOAT_COOKIE_LITTLE_ENDIAN
int LAST_DS_LEN
String VERSION
Public Methods
int getDSCount()
Returns the number of DataSources in the database.
int getPDPStep()
Returns the primary data point interval in seconds.
int getRRACount()
Returns the number of Archives in the database.
String getVersion()
Returns the version of the database.
String toString()
Returns a summary the contents of this header.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int CF_NAM_SIZE

Constant Value: 20 (0x00000014)

public static final String COOKIE

Constant Value: "RRD"

public static final int DST_SIZE

Constant Value: 20 (0x00000014)

public static final int DS_NAM_SIZE

Constant Value: 20 (0x00000014)

public static final double FLOAT_COOKIE

Constant Value: 8.642135E130

public static final byte[] FLOAT_COOKIE_BIG_ENDIAN

public static final byte[] FLOAT_COOKIE_LITTLE_ENDIAN

public static final int LAST_DS_LEN

Constant Value: 30 (0x0000001e)

public static final String VERSION

Constant Value: "0001"

Public Methods

public int getDSCount ()

Returns the number of DataSources in the database.

Returns
  • the number of DataSources in the database.

public int getPDPStep ()

Returns the primary data point interval in seconds.

Returns
  • the primary data point interval in seconds.

public int getRRACount ()

Returns the number of Archives in the database.

Returns
  • the number of Archives in the database.

public String getVersion ()

Returns the version of the database.

Returns
  • the version of the database.

public String toString ()

Returns a summary the contents of this header.

Returns
  • a summary of the information contained in this header.