public class Header extends Object implements Constants
Modifier and Type | Field and Description |
---|---|
(package private) int |
dsCount |
(package private) int |
intVersion |
(package private) static long |
offset |
(package private) int |
pdpStep |
(package private) int |
rraCount |
(package private) long |
size |
(package private) String |
version |
CF_NAM_SIZE, COOKIE, DS_NAM_SIZE, DST_SIZE, FLOAT_COOKIE, FLOAT_COOKIE_BIG_ENDIAN, FLOAT_COOKIE_LITTLE_ENDIAN, LAST_DS_LEN, VERSION, VERSION3
Modifier and Type | Method and Description |
---|---|
int |
getDSCount()
Returns the number of
DataSource s in the database. |
int |
getIntVersion() |
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.
|
String |
toString()
Returns a summary the contents of this header.
|
static final long offset
long size
String version
int intVersion
int dsCount
int rraCount
int pdpStep
Header(RRDFile file) throws IOException, RrdException
IOException
RrdException
public String getVersion()
public int getIntVersion()
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()