java.lang.Object
org.rrd4j.core.jrrd.CDPStatusBlock

public class CDPStatusBlockextends Object
Instances of this class model the consolidation data point status from an RRD file.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final long
    Byte offset within file
    (package private) final double
    Primary value
    (package private) final double
    Secondary value
    (package private) final long
    Size of block in bytes
    (package private) final int
    Number of unknown datapoints
    (package private) final double
    Value of this consolidated data point
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a CDP status block by reading from an RRD file.
  • Method Summary

    All Methods
    Modifier and Type
    Method
    Description
    int
    Returns the number of unknown primary data points that were integrated.
    double
    Returns the value of this consolidated data point.
    Returns a summary the contents of this CDP status block.
    (package private) void
    Writes the CDP status block as XML to the given print stream.

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • offset

      final long offset
      Byte offset within file
    • size

      final long size
      Size of block in bytes
    • unknownDatapoints

      final int unknownDatapoints
      Number of unknown datapoints
    • value

      final double value
      Value of this consolidated data point
    • secondary_value

      final double secondary_value
      Secondary value
    • primary_value

      final double primary_value
      Primary value
  • Constructor Details

    • CDPStatusBlock

      CDPStatusBlock(RRDFile file)
      Constructs a CDP status block by reading from an RRD file.
      Parameters:
      file - the RRD file to read from
  • Method Details

    • getUnknownDatapoints

      public int getUnknownDatapoints()
      Returns the number of unknown primary data points that were integrated.
      Returns:
      the number of unknown primary data points that were integrated.
    • getValue

      public double getValue()
      Returns the value of this consolidated data point.
      Returns:
      the value of this consolidated data point.
    • toXml

      void toXml(PrintStream s)
      Writes the CDP status block as XML to the given print stream.
      Parameters:
      s - the print stream to write to
    • toString

      public String toString()
      Returns a summary the contents of this CDP status block.
      Overrides:
      toString in class Object
      Returns:
      a summary of the information contained in the CDP status block.