public class Header extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CF_NAM_SIZE
Constant
CF_NAM_SIZE=20 |
static String |
COOKIE
Constant
COOKIE="RRD" |
static int |
DS_NAM_SIZE
Constant
DS_NAM_SIZE=20 |
static int |
DST_SIZE
Constant
DST_SIZE=20 |
static byte[] |
FLOAT_COOKIE_BIG_ENDIAN
Constant
FLOAT_COOKIE_BIG_ENDIAN={0x5B, 0x1F, 0x2B, 0x43,
(byte) 0xC7, (byte) 0xC0, 0x25,
0x2F} |
static byte[] |
FLOAT_COOKIE_LITTLE_ENDIAN
Constant
FLOAT_COOKIE_LITTLE_ENDIAN={0x2F, 0x25, (byte) 0xC0,
(byte) 0xC7, 0x43, 0x2B, 0x1F,
0x5B} |
static int |
LAST_DS_LEN
Constant
LAST_DS_LEN=30 |
static int |
MAX_SUPPORTED_VERSION
Constant
MAX_SUPPORTED_VERSION=3 |
static String |
UNDEFINED_VERSION
Constant
UNDEFINED_VERSION="UNDEF" |
static int |
UNDEFINED_VERSION_AS_INT
Constant
UNDEFINED_VERSION_AS_INT=-1 |
static int |
VERSION_WITH_LAST_UPDATE_SEC
Constant
VERSION_WITH_LAST_UPDATE_SEC=3 |
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.
|
public static final int DS_NAM_SIZE
DS_NAM_SIZE=20
public static final int DST_SIZE
DST_SIZE=20
public static final int CF_NAM_SIZE
CF_NAM_SIZE=20
public static final int LAST_DS_LEN
LAST_DS_LEN=30
public static final String COOKIE
COOKIE="RRD"
public static final int MAX_SUPPORTED_VERSION
MAX_SUPPORTED_VERSION=3
public static final String UNDEFINED_VERSION
UNDEFINED_VERSION="UNDEF"
public static final int UNDEFINED_VERSION_AS_INT
UNDEFINED_VERSION_AS_INT=-1
public static final int VERSION_WITH_LAST_UPDATE_SEC
VERSION_WITH_LAST_UPDATE_SEC=3
public static final byte[] FLOAT_COOKIE_BIG_ENDIAN
FLOAT_COOKIE_BIG_ENDIAN={0x5B, 0x1F, 0x2B, 0x43,
(byte) 0xC7, (byte) 0xC0, 0x25,
0x2F}
public static final byte[] FLOAT_COOKIE_LITTLE_ENDIAN
FLOAT_COOKIE_LITTLE_ENDIAN={0x2F, 0x25, (byte) 0xC0,
(byte) 0xC7, 0x43, 0x2B, 0x1F,
0x5B}
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()
Copyright © 2015. All rights reserved.