RrdUpdaterpublic class Header extends Object implements RrdUpdater
Normally, you don't need to manipulate the Header object directly - JRobin framework does it for you.
| Modifier and Type | Field | Description |
|---|---|---|
(package private) static String |
DEFAULT_SIGNATURE |
|
(package private) static String |
RRDTOOL_VERSION |
|
(package private) static String |
SIGNATURE |
|
(package private) static int |
SIGNATURE_LENGTH |
| Constructor | Description |
|---|---|
Header(RrdDb parentDb,
DataImporter reader) |
|
Header(RrdDb parentDb,
RrdDef rrdDef) |
| Modifier and Type | Method | Description |
|---|---|---|
(package private) void |
appendXml(XmlWriter writer) |
|
void |
copyStateTo(RrdUpdater other) |
Copies object's internal state to another Header object.
|
(package private) String |
dump() |
|
int |
getArcCount() |
Returns the number of archives defined in the RRD.
|
int |
getDsCount() |
Returns the number of datasources defined in the RRD.
|
String |
getInfo() |
|
long |
getLastUpdateTime() |
Returns the last update time of the RRD.
|
RrdAllocator |
getRrdAllocator() |
Required to implement RrdUpdater interface.
|
RrdBackend |
getRrdBackend() |
Returns the underlying storage (backend) object which actually performs all
I/O operations.
|
String |
getSignature() |
Returns RRD signature.
|
long |
getStep() |
Returns primary RRD time step.
|
(package private) boolean |
isJRobinHeader() |
|
void |
setInfo(String info) |
|
void |
setLastUpdateTime(long lastUpdateTime) |
|
(package private) void |
validateHeader() |
static final int SIGNATURE_LENGTH
static final String SIGNATURE
static final String DEFAULT_SIGNATURE
static final String RRDTOOL_VERSION
Header(RrdDb parentDb, RrdDef rrdDef) throws IOException
IOExceptionHeader(RrdDb parentDb, DataImporter reader) throws IOException, RrdException
IOExceptionRrdExceptionpublic String getSignature() throws IOException
IOException - Thrown in case of I/O errorpublic String getInfo() throws IOException
IOExceptionpublic void setInfo(String info) throws IOException
IOExceptionpublic long getLastUpdateTime()
throws IOException
IOException - Thrown in case of I/O errorpublic long getStep()
throws IOException
IOException - Thrown in case of I/O errorpublic int getDsCount()
throws IOException
IOException - Thrown in case of I/O errorpublic int getArcCount()
throws IOException
IOException - Thrown in case of I/O errorpublic void setLastUpdateTime(long lastUpdateTime)
throws IOException
IOExceptionString dump() throws IOException
IOExceptionvoid appendXml(XmlWriter writer) throws IOException
IOExceptionpublic void copyStateTo(RrdUpdater other) throws IOException, RrdException
copyStateTo in interface RrdUpdaterother - New Header object to copy state toIOException - Thrown in case of I/O errorRrdException - Thrown if supplied argument is not a Header objectpublic RrdBackend getRrdBackend()
getRrdBackend in interface RrdUpdaterboolean isJRobinHeader()
throws IOException
IOExceptionvoid validateHeader()
throws IOException,
RrdException
IOExceptionRrdExceptionpublic RrdAllocator getRrdAllocator()
getRrdAllocator in interface RrdUpdater