Class Archive


  • public class Archive
    extends Object
    Instances of this class model an archive section of an RRD file.
    Version:
    $Revision: 1.1 $
    Author:
    Ciaran Treanor
    • Field Detail

      • headerOffset

        final long headerOffset
        Header offset within file in bytes
      • dataOffset

        long dataOffset
        Data offset within file in bytes
      • rowCount

        final int rowCount
        Data row count
      • pdpCount

        final int pdpCount
      • xff

        final double xff
      • currentRow

        int currentRow
        Row for last modification time of database
    • Method Detail

      • getType

        public ConsolidationFunctionType getType()
        Returns the type of function used to calculate the consolidated data point.
        Returns:
        the type of function used to calculate the consolidated data point.
      • getCDPStatusBlock

        public CDPStatusBlock getCDPStatusBlock​(int index)
        Returns the CDPStatusBlock at the specified position in this archive.
        Parameters:
        index - index of CDPStatusBlock to return.
        Returns:
        the CDPStatusBlock at the specified position in this archive.
      • getCDPStatusBlocks

        public Iterator<CDPStatusBlock> getCDPStatusBlocks()
        Returns an iterator over the CDP status blocks in this archive in proper sequence.
        Returns:
        an iterator over the CDP status blocks in this archive in proper sequence.
        See Also:
        CDPStatusBlock
      • getValues

        public double[][] getValues()
                             throws IOException

        Getter for the field values.

        Returns:
        an array of double.
        Throws:
        IOException - if any.
      • getPdpCount

        public int getPdpCount()
        Returns the number of primary data points required for a consolidated data point in this archive.
        Returns:
        the number of primary data points required for a consolidated data point in this archive.
      • getRowCount

        public int getRowCount()
        Returns the number of entries in this archive.
        Returns:
        the number of entries in this archive.
      • getXff

        public double getXff()
        Returns the X-Files Factor for this archive.
        Returns:
        the X-Files Factor for this archive.
      • toString

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