Package org.rrd4j.core.jrrd
Class Header
java.lang.Object
org.rrd4j.core.jrrd.Header
- All Implemented Interfaces:
Constants
Instances of this class model the header section of an RRD file.
- Version:
- $Revision: 1.1 $
- Author:
- Ciaran Treanor
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final intNumber of data sources(package private) final int(package private) final intNumber of archives within file(package private) final StringFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number ofDataSources in the database.intReturns the primary data point interval in seconds.intReturns the number ofArchives in the database.Returns the version of the database.intReturns the version of the database as an integer.toString()Returns a summary the contents of this header.
-
Field Details
-
version
-
dsCount
final int dsCountNumber of data sources -
rraCount
final int rraCountNumber of archives within file -
pdpStep
final int pdpStep
-
-
Constructor Details
-
Header
Header(RRDFile file) throws IOException - 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.
-