Package org.rrd4j.core.jrrd
Class Header
java.lang.Object
org.rrd4j.core.jrrd.Header
- All Implemented Interfaces:
Constants
public class Header extends Object implements Constants
Instances of this class model the header section of an RRD file.
- Version:
- $Revision: 1.1 $
- Author:
- Ciaran Treanor
-
Field Summary
Fields Modifier and Type Field Description (package private) intdsCountNumber of data sources(package private) intpdpStep(package private) intrraCountNumber of archives within file(package private) StringversionFields inherited from interface org.rrd4j.core.jrrd.Constants
CF_NAM_SIZE, COOKIE, DS_NAM_SIZE, DST_SIZE, LAST_DS_LEN, MAX_SUPPORTED_VERSION, SIZE_OF_DOUBLE, UNDEFINED_VERSION, UNDEFINED_VERSION_AS_INT, VERSION_WITH_LAST_UPDATE_SEC -
Constructor Summary
-
Method Summary
Modifier and Type Method Description intgetDSCount()Returns the number ofDataSources in the database.intgetPDPStep()Returns the primary data point interval in seconds.intgetRRACount()Returns the number ofArchives in the database.StringgetVersion()Returns the version of the database.intgetVersionAsInt()Returns the version of the database as an integer.StringtoString()Returns a summary the contents of this header.
-
Field Details
-
Constructor Details
-
Header
- Throws:
IOException
-
-
Method Details
-
getVersion
Returns the version of the database.- Returns:
- the version of the database.
-
getVersionAsInt
public int getVersionAsInt()Returns the version of the database as an integer.- Returns:
- the version of the database.
-
getDSCount
public int getDSCount()Returns the number ofDataSources in the database.- Returns:
- the number of
DataSources in the database.
-
getRRACount
public int getRRACount()Returns the number ofArchives in the database.- Returns:
- the number of
Archives in the database.
-
getPDPStep
public int getPDPStep()Returns the primary data point interval in seconds.- Returns:
- the primary data point interval in seconds.
-
toString
Returns a summary the contents of this header.
-