org.jrobin.core.jrrd
Class Header

java.lang.Object
  extended by org.jrobin.core.jrrd.Header

public class Header
extends Object

Instances of this class model the header section of an RRD file.

Version:
$Revision: 1.2 $
Author:
Ciaran Treanor

Field Summary
static int CF_NAM_SIZE
           
static String COOKIE
           
static int DS_NAM_SIZE
           
static int DST_SIZE
           
static double FLOAT_COOKIE
           
static byte[] FLOAT_COOKIE_BIG_ENDIAN
           
static byte[] FLOAT_COOKIE_LITTLE_ENDIAN
           
static int LAST_DS_LEN
           
static String VERSION
           
 
Method Summary
 int getDSCount()
          Returns the number of DataSources in the database.
 int getPDPStep()
          Returns the primary data point interval in seconds.
 int getRRACount()
          Returns the number of Archives in the database.
 String getVersion()
          Returns the version of the database.
 String toString()
          Returns a summary the contents of this header.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DS_NAM_SIZE

public static final int DS_NAM_SIZE
See Also:
Constant Field Values

DST_SIZE

public static final int DST_SIZE
See Also:
Constant Field Values

CF_NAM_SIZE

public static final int CF_NAM_SIZE
See Also:
Constant Field Values

LAST_DS_LEN

public static final int LAST_DS_LEN
See Also:
Constant Field Values

COOKIE

public static final String COOKIE
See Also:
Constant Field Values

VERSION

public static final String VERSION
See Also:
Constant Field Values

FLOAT_COOKIE

public static final double FLOAT_COOKIE
See Also:
Constant Field Values

FLOAT_COOKIE_BIG_ENDIAN

public static final byte[] FLOAT_COOKIE_BIG_ENDIAN

FLOAT_COOKIE_LITTLE_ENDIAN

public static final byte[] FLOAT_COOKIE_LITTLE_ENDIAN
Method Detail

getVersion

public String getVersion()
Returns the version of the database.

Returns:
the version of the database.

getDSCount

public int getDSCount()
Returns the number of DataSources in the database.

Returns:
the number of DataSources in the database.

getRRACount

public int getRRACount()
Returns the number of Archives 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.

toString

public String toString()
Returns a summary the contents of this header.

Overrides:
toString in class Object
Returns:
a summary of the information contained in this header.


Copyright 2003-2008. All Rights Reserved.