Package org.rrd4j.core.jrrd
Class CDPStatusBlock
java.lang.Object
org.rrd4j.core.jrrd.CDPStatusBlock
public class CDPStatusBlock extends Object
Instances of this class model the consolidation data point status from an RRD file.
- Version:
 - $Revision: 1.1 $
 - Author:
 - Ciaran Treanor
 
- 
Field Summary
Fields Modifier and Type Field Description (package private) longoffsetByte offset within file(package private) doubleprimary_value(package private) doublesecondary_value(package private) longsizeSize of block in bytes(package private) intunknownDatapoints(package private) doublevalue - 
Constructor Summary
Constructors Constructor Description CDPStatusBlock(RRDFile file) - 
Method Summary
Modifier and Type Method Description intgetUnknownDatapoints()Returns the number of unknown primary data points that were integrated.doublegetValue()Returns the value of this consolidated data point.StringtoString()Returns a summary the contents of this CDP status block.(package private) voidtoXml(PrintStream s) 
- 
Field Details
- 
offset
final long offsetByte offset within file - 
size
final long sizeSize of block in bytes - 
unknownDatapoints
final int unknownDatapoints - 
value
final double value - 
secondary_value
final double secondary_value - 
primary_value
final double primary_value 
 - 
 - 
Constructor Details
- 
CDPStatusBlock
- Throws:
 IOException
 
 - 
 - 
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
 - 
toString
Returns a summary the contents of this CDP status block. 
 -