RrdUpdaterpublic class Header extends java.lang.Object implements RrdUpdater
Normally, you don't need to manipulate the Header object directly - JRobin framework does it for you.
| 修飾子とタイプ | フィールド | 説明 |
|---|---|---|
(package private) static java.lang.String |
DEFAULT_SIGNATURE |
|
(package private) static java.lang.String |
RRDTOOL_VERSION |
|
(package private) static java.lang.String |
SIGNATURE |
|
(package private) static int |
SIGNATURE_LENGTH |
| コンストラクタ | 説明 |
|---|---|
Header(RrdDb parentDb,
DataImporter reader) |
|
Header(RrdDb parentDb,
RrdDef rrdDef) |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
(package private) void |
appendXml(XmlWriter writer) |
|
void |
copyStateTo(RrdUpdater other) |
Copies object's internal state to another Header object.
|
(package private) java.lang.String |
dump() |
|
int |
getArcCount() |
Returns the number of archives defined in the RRD.
|
int |
getDsCount() |
Returns the number of datasources defined in the RRD.
|
java.lang.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.
|
java.lang.String |
getSignature() |
Returns RRD signature.
|
long |
getStep() |
Returns primary RRD time step.
|
(package private) boolean |
isJRobinHeader() |
|
void |
setInfo(java.lang.String info) |
|
void |
setLastUpdateTime(long lastUpdateTime) |
|
(package private) void |
validateHeader() |
static final int SIGNATURE_LENGTH
static final java.lang.String SIGNATURE
static final java.lang.String DEFAULT_SIGNATURE
static final java.lang.String RRDTOOL_VERSION
Header(RrdDb parentDb, DataImporter reader) throws java.io.IOException, RrdException
java.io.IOExceptionRrdExceptionpublic java.lang.String getSignature()
throws java.io.IOException
java.io.IOException - Thrown in case of I/O errorpublic java.lang.String getInfo()
throws java.io.IOException
java.io.IOExceptionpublic void setInfo(java.lang.String info)
throws java.io.IOException
java.io.IOExceptionpublic long getLastUpdateTime()
throws java.io.IOException
java.io.IOException - Thrown in case of I/O errorpublic long getStep()
throws java.io.IOException
java.io.IOException - Thrown in case of I/O errorpublic int getDsCount()
throws java.io.IOException
java.io.IOException - Thrown in case of I/O errorpublic int getArcCount()
throws java.io.IOException
java.io.IOException - Thrown in case of I/O errorpublic void setLastUpdateTime(long lastUpdateTime)
throws java.io.IOException
java.io.IOExceptionjava.lang.String dump()
throws java.io.IOException
java.io.IOExceptionvoid appendXml(XmlWriter writer) throws java.io.IOException
java.io.IOExceptionpublic void copyStateTo(RrdUpdater other) throws java.io.IOException, RrdException
copyStateTo インタフェース内 RrdUpdaterother - New Header object to copy state tojava.io.IOException - Thrown in case of I/O errorRrdException - Thrown if supplied argument is not a Header objectpublic RrdBackend getRrdBackend()
getRrdBackend インタフェース内 RrdUpdaterboolean isJRobinHeader()
throws java.io.IOException
java.io.IOExceptionvoid validateHeader()
throws java.io.IOException,
RrdException
java.io.IOExceptionRrdExceptionpublic RrdAllocator getRrdAllocator()
getRrdAllocator インタフェース内 RrdUpdater