Package org.rrd4j.core
Class ArcState
java.lang.Object
org.rrd4j.core.ArcState
- All Implemented Interfaces:
RrdUpdater<ArcState>
public class ArcState extends Object implements RrdUpdater<ArcState>
Class to represent internal RRD archive state for a single datasource. Objects of this
class are never manipulated directly, it's up to Rrd4j to manage internal archive states.
- Author:
- Sasa Markovic
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description (package private) voidappendXml(XmlWriter writer)voidcopyStateTo(ArcState arcState)copyStateTo.(package private) Stringdump()doublegetAccumValue()Returns the value accumulated so far.longgetNanSteps()Returns the number of currently accumulated NaN steps.ArchivegetParent()Returns the Archive object to which this ArcState object belongs.RrdAllocatorgetRrdAllocator()Required to implement RrdUpdater interface.RrdBackendgetRrdBackend()Returns the underlying storage (backend) object which actually performs all I/O operations.(package private) voidsetAccumValue(double value)(package private) voidsetNanSteps(long value)
-
Constructor Details
-
ArcState
- Throws:
IOException
-
-
Method Details
-
dump
- Throws:
IOException
-
setNanSteps
- Throws:
IOException
-
getNanSteps
Returns the number of currently accumulated NaN steps.- Returns:
- Number of currently accumulated NaN steps.
- Throws:
IOException- Thrown in case of I/O error
-
setAccumValue
- Throws:
IOException
-
getAccumValue
Returns the value accumulated so far.- Returns:
- Accumulated value
- Throws:
IOException- Thrown in case of I/O error
-
getParent
Returns the Archive object to which this ArcState object belongs.- Returns:
- Parent Archive object.
-
appendXml
- Throws:
IOException
-
copyStateTo
copyStateTo.
Copies object's internal state to another ArcState object.- Specified by:
copyStateToin interfaceRrdUpdater<ArcState>- Parameters:
arcState- aRrdUpdaterobject.- Throws:
IOException- if any.
-
getRrdBackend
Returns the underlying storage (backend) object which actually performs all I/O operations.- Specified by:
getRrdBackendin interfaceRrdUpdater<ArcState>- Returns:
- I/O backend object
-
getRrdAllocator
Required to implement RrdUpdater interface. You should never call this method directly.- Specified by:
getRrdAllocatorin interfaceRrdUpdater<ArcState>- Returns:
- Allocator object
-