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) int
dsCount
Number of data sources(package private) int
pdpStep
(package private) int
rraCount
Number of archives within file(package private) String
version
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 Type Method Description int
getDSCount()
Returns the number ofDataSource
s in the database.int
getPDPStep()
Returns the primary data point interval in seconds.int
getRRACount()
Returns the number ofArchive
s in the database.String
getVersion()
Returns the version of the database.int
getVersionAsInt()
Returns the version of the database as an integer.String
toString()
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 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.
-