public class ArcState extends Object implements RrdUpdater<ArcState>
| Constructor and Description |
|---|
ArcState(Archive parentArc,
boolean shouldInitialize) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
appendXml(XmlWriter writer) |
void |
copyStateTo(ArcState arcState)
copyStateTo.
|
(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) |
ArcState(Archive parentArc, boolean shouldInitialize) throws IOException
IOExceptionvoid appendXml(XmlWriter writer) throws IOException
IOExceptionpublic void copyStateTo(ArcState arcState) throws IOException
Copies object's internal state to another ArcState object.
copyStateTo in interface RrdUpdater<ArcState>arcState - a RrdUpdater object.IOException - if any.String dump() throws IOException
IOExceptionpublic double getAccumValue()
throws IOException
IOException - Thrown in case of I/O errorpublic long getNanSteps()
throws IOException
IOException - Thrown in case of I/O errorpublic Archive getParent()
public RrdAllocator getRrdAllocator()
getRrdAllocator in interface RrdUpdater<ArcState>public RrdBackend getRrdBackend()
getRrdBackend in interface RrdUpdater<ArcState>void setAccumValue(double value)
throws IOException
IOExceptionvoid setNanSteps(long value)
throws IOException
IOException