Package org.rrd4j.core.jrrd
Class Archive
java.lang.Object
org.rrd4j.core.jrrd.Archive
Instances of this class model an archive section of an RRD file.
- Version:
- $Revision: 1.1 $
- Author:
- Ciaran Treanor
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) List<CDPStatusBlock>Consolitation data points(package private) intRow for last modification time of database(package private) longData offset within file in bytes(package private) final RRDatabase(package private) final longHeader offset within file in bytes(package private) final int(package private) final intData row count(package private) final double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCDPStatusBlock(int index) Returns theCDPStatusBlockat the specified position in this archive.Returns an iterator over the CDP status blocks in this archive in proper sequence.intReturns the number of primary data points required for a consolidated data point in this archive.intReturns the number of entries in this archive.getType()Returns the type of function used to calculate the consolidated data point.double[][]Getter for the fieldvalues.doublegetXff()Returns the X-Files Factor for this archive.(package private) voidloadCDPStatusBlocks(RRDFile file, int numBlocks) (package private) voidloadCurrentRow(RRDFile file) (package private) void(package private) void(package private) voidprintInfo(PrintStream s, NumberFormat numberFormat, int index) toString()Returns a summary the contents of this archive.(package private) voidtoXml(PrintStream s)
-
Field Details
-
db
-
headerOffset
final long headerOffsetHeader offset within file in bytes -
dataOffset
long dataOffsetData offset within file in bytes -
rowCount
final int rowCountData row count -
pdpCount
final int pdpCount -
xff
final double xff -
cdpStatusBlocks
List<CDPStatusBlock> cdpStatusBlocksConsolitation data points -
currentRow
int currentRowRow for last modification time of database
-
-
Constructor Details
-
Archive
Archive(RRDatabase db) throws IOException - Throws:
IOException
-
-
Method Details
-
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.
-
loadCDPStatusBlocks
- Throws:
IOException
-
getCDPStatusBlock
Returns theCDPStatusBlockat the specified position in this archive.- Parameters:
index- index ofCDPStatusBlockto return.- Returns:
- the
CDPStatusBlockat the specified position in this archive.
-
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:
-
loadCurrentRow
- Throws:
IOException
-
loadData
- Throws:
IOException
-
loadData
- Throws:
IOException
-
printInfo
-
toXml
-
getValues
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
Returns a summary the contents of this archive.
-