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) intdsCount(package private) intintVersion(package private) static longoffset(package private) intpdpStep(package private) intrraCount(package private) longsize(package private) Stringversion-
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 intgetDSCount()Returns the number ofDataSources in the database.intgetIntVersion()intgetPDPStep()Returns the primary data point interval in seconds.intgetRRACount()Returns the number ofArchives in the database.StringgetVersion()Returns the version of the database.StringtoString()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:
IOExceptionRrdException
-
-
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 ofDataSources in the database.- Returns:
- the number of
DataSources in the database.
-
getRRACount
public int getRRACount()
Returns the number ofArchives in the database.- Returns:
- the number of
Archives in the database.
-
getPDPStep
public int getPDPStep()
Returns the primary data point interval in seconds.- Returns:
- the primary data point interval in seconds.
-
-