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
IOException
String dump() throws IOException
IOException
void setNanSteps(long value) throws IOException
IOException
public long getNanSteps() throws IOException
IOException
- Thrown in case of I/O errorvoid setAccumValue(double value) throws IOException
IOException
public double getAccumValue() throws IOException
IOException
- Thrown in case of I/O errorpublic Archive getParent()
void appendXml(XmlWriter writer) throws IOException
IOException
public void copyStateTo(RrdUpdater other) throws IOException, RrdException
copyStateTo
in interface RrdUpdater
other
- 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 RrdUpdater
public RrdAllocator getRrdAllocator()
getRrdAllocator
in interface RrdUpdater