Package org.jrobin.core.jrrd
Class Header
- java.lang.Object
-
- org.jrobin.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$
- Author:
- Ciaran Treanor
-
-
Field Summary
Fields Modifier and Type Field 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
-
Fields inherited from interface org.jrobin.core.jrrd.Constants
CF_NAM_SIZE, COOKIE, DS_NAM_SIZE, DST_SIZE, FLOAT_COOKIE, FLOAT_COOKIE_BIG_ENDIAN, FLOAT_COOKIE_LITTLE_ENDIAN, LAST_DS_LEN, VERSION, VERSION3
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDSCount()
Returns the number ofDataSource
s in the database.int
getIntVersion()
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.String
toString()
Returns a summary the contents of this header.
-
-
-
Field Detail
-
offset
static final long offset
- See Also:
- Constant Field Values
-
size
long size
-
version
String version
-
intVersion
int intVersion
-
dsCount
int dsCount
-
rraCount
int rraCount
-
pdpStep
int pdpStep
-
-
Constructor Detail
-
Header
Header(RRDFile file) throws IOException, RrdException
- Throws:
IOException
RrdException
-
-
Method Detail
-
getVersion
public String getVersion()
Returns the version of the database.- Returns:
- the version of the database.
-
getIntVersion
public int getIntVersion()
-
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.
-
-