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

public class PDPStatusBlockextends Object
Instances of this class model the primary data point status from an RRD file.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static enum 
    Indexes the fields of a primary data point's status block.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final String
    the last reading from the data source
    private final long
    Where the status block starts in the file.
    private final long
    Size of the status block, in bytes.
    (package private) final int
    number of seconds of unknown data
    (package private) final double
    the current value of the primary data point
  • Constructor Summary

    Constructors
    Constructor
    Description
    Reads a PDPStatusBlock from the header of an RRD file.
  • Method Summary

    All Methods
    Modifier and Type
    Method
    Description
    Returns the last reading from the data source.
    int
    Returns the number of seconds of the current primary data point is unknown data.
    double
    Returns the current value of the primary data point.
    Returns a summary the contents of this PDP status block.

    Methods inherited from class Object

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

    • offset

      private final long offset
      Where the status block starts in the file.
    • size

      private final long size
      Size of the status block, in bytes.
    • lastReading

      final String lastReading
      the last reading from the data source
    • unknownSeconds

      final int unknownSeconds
      number of seconds of unknown data
    • value

      final double value
      the current value of the primary data point
  • Constructor Details

    • PDPStatusBlock

      PDPStatusBlock(RRDFile file)
      Reads a PDPStatusBlock from the header of an RRD file.
      Parameters:
      file - the RRD file to read from
  • Method Details

    • getLastReading

      public String getLastReading()
      Returns the last reading from the data source.
      Returns:
      the last reading from the data source.
    • getValue

      public double getValue()
      Returns the current value of the primary data point.
      Returns:
      the current value of the primary data point.
    • getUnknownSeconds

      public int getUnknownSeconds()
      Returns the number of seconds of the current primary data point is unknown data.
      Returns:
      the number of seconds of the current primary data point is unknown data.
    • toString

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