|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jrobin.core.Header
Class to represent RRD header. Header information is mainly static (once set, it cannot be changed), with the exception of last update time (this value is changed whenever RRD gets updated).
Normally, you don't need to manipulate the Header object directly - JRobin framework does it for you.
Method Summary | |
void |
copyStateTo(org.jrobin.core.RrdUpdater other)
Copies object's internal state to another Header object. |
int |
getArcCount()
Returns the number of archives defined in the RRD. |
int |
getDsCount()
Returns the number of datasources defined in the RRD. |
long |
getLastUpdateTime()
Returns the last update time of the RRD. |
org.jrobin.core.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.lang.String getSignature() throws java.io.IOException
java.io.IOException
- Thrown in case of I/O errorpublic 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 copyStateTo(org.jrobin.core.RrdUpdater other) throws java.io.IOException, RrdException
copyStateTo
in interface org.jrobin.core.RrdUpdater
other
- New Header object to copy state to
java.io.IOException
- Thrown in case of I/O error
RrdException
- Thrown if supplied argument is not a Header objectpublic RrdBackend getRrdBackend()
getRrdBackend
in interface org.jrobin.core.RrdUpdater
public org.jrobin.core.RrdAllocator getRrdAllocator()
getRrdAllocator
in interface org.jrobin.core.RrdUpdater
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |