public class

ArcState

extends Object
java.lang.Object
   ↳ org.rrd4j.core.ArcState

Class Overview

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.

Summary

Public Methods
void copyStateTo(RrdUpdater other)
Copies object's internal state to another ArcState object.
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void copyStateTo (RrdUpdater other)

Copies object's internal state to another ArcState object.

Parameters
other New ArcState object to copy state to
Throws
IOException Thrown in case of I/O error

public double getAccumValue ()

Returns the value accumulated so far.

Returns
  • Accumulated value
Throws
IOException Thrown in case of I/O error

public long 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

public Archive getParent ()

Returns the Archive object to which this ArcState object belongs.

Returns
  • Parent Archive object.

public RrdAllocator getRrdAllocator ()

Required to implement RrdUpdater interface. You should never call this method directly.

Returns
  • Allocator object

public RrdBackend getRrdBackend ()

Returns the underlying storage (backend) object which actually performs all I/O operations.

Returns
  • I/O backend object