public class ArcState extends Object implements RrdUpdater
| Constructor and Description |
|---|
ArcState(Archive parentArc,
boolean shouldInitialize) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
appendXml(XmlWriter writer) |
void |
copyStateTo(RrdUpdater other)
Copies object's internal state to another ArcState object.
|
(package private) String |
dump() |
double |
getAccumValue()
Returns the value accumulated so far.
|
long |
getNanSteps()
Returns the number of currently accumulated NaN steps.
|
Archive |
getParent()
Returns the Archive object to which this ArcState object belongs.
|
RrdAllocator |
getRrdAllocator()
Required to implement RrdUpdater interface.
|
RrdBackend |
getRrdBackend()
Returns the underlying storage (backend) object which actually performs all
I/O operations.
|
(package private) void |
setAccumValue(double value) |
(package private) void |
setNanSteps(long value) |
String |
toString() |
ArcState(Archive parentArc, boolean shouldInitialize) throws IOException
IOExceptionString dump() throws IOException
IOExceptionvoid setNanSteps(long value)
throws IOException
IOExceptionpublic long getNanSteps()
throws IOException
IOException - Thrown in case of I/O errorvoid setAccumValue(double value)
throws IOException
IOExceptionpublic double getAccumValue()
throws IOException
IOException - Thrown in case of I/O errorpublic Archive getParent()
void appendXml(XmlWriter writer) throws IOException
IOExceptionpublic void copyStateTo(RrdUpdater other) throws IOException, RrdException
copyStateTo in interface RrdUpdaterother - New ArcState object to copy state toIOException - Thrown in case of I/O errorRrdException - Thrown if supplied argument is not an ArcState objectpublic RrdBackend getRrdBackend()
getRrdBackend in interface RrdUpdaterpublic RrdAllocator getRrdAllocator()
getRrdAllocator in interface RrdUpdater