public class Header extends Object implements Constants
Modifier and Type | Field and 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 |
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
Modifier and Type | Method and Description |
---|---|
int |
getDSCount()
Returns the number of
DataSource s in the database. |
int |
getPDPStep()
Returns the primary data point interval in seconds.
|
int |
getRRACount()
Returns the number of
Archive 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.
|
final String version
final int dsCount
final int rraCount
final int pdpStep
Header(RRDFile file) throws IOException
IOException
public String getVersion()
public int getVersionAsInt()
public int getDSCount()
DataSource
s in the database.DataSource
s in the database.public int getRRACount()
Archive
s in the database.Archive
s in the database.public int getPDPStep()