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
Modifier and TypeFieldDescription(package private) final int
Number of data sources(package private) final int
(package private) final int
Number of archives within file(package private) final String
Fields 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 TypeMethodDescriptionint
Returns the number ofDataSource
s in the database.int
Returns the primary data point interval in seconds.int
Returns the number ofArchive
s in the database.Returns the version of the database.int
Returns 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 ofDataSource
s in the database.- Returns:
- the number of
DataSource
s in the database.
-
getRRACount
public int getRRACount()Returns the number ofArchive
s in the database.- Returns:
- the number of
Archive
s 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.
-