Class ArcState

  • All Implemented Interfaces:
    RrdUpdater

    public class ArcState
    extends Object
    implements RrdUpdater
    Class to represent internal RRD archive state for a single datasource. Objects of this class are never manipulated directly, it's up to JRobin framework to manage internal arcihve states.

    Author:
    Sasa Markovic
    • Method Detail

      • getNanSteps

        public long getNanSteps()
                         throws IOException
        Returns the number of currently accumulated NaN steps.
        Returns:
        Number of currently accumulated NaN steps.
        Throws:
        IOException - Thrown in case of I/O error
      • getAccumValue

        public double getAccumValue()
                             throws IOException
        Returns the value accumulated so far.
        Returns:
        Accumulated value
        Throws:
        IOException - Thrown in case of I/O error
      • getParent

        public Archive getParent()
        Returns the Archive object to which this ArcState object belongs.
        Returns:
        Parent Archive object.
      • getRrdBackend

        public RrdBackend getRrdBackend()
        Returns the underlying storage (backend) object which actually performs all I/O operations.
        Specified by:
        getRrdBackend in interface RrdUpdater
        Returns:
        I/O backend object
      • getRrdAllocator

        public RrdAllocator getRrdAllocator()
        Required to implement RrdUpdater interface. You should never call this method directly.
        Specified by:
        getRrdAllocator in interface RrdUpdater
        Returns:
        Allocator object