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) long
offset
Byte offset within file(package private) double
primary_value
(package private) double
secondary_value
(package private) long
size
Size of block in bytes(package private) int
unknownDatapoints
(package private) double
value
-
Constructor Summary
Constructors Constructor Description CDPStatusBlock(RRDFile file)
-
Method Summary
Modifier and Type Method Description int
getUnknownDatapoints()
Returns the number of unknown primary data points that were integrated.double
getValue()
Returns the value of this consolidated data point.String
toString()
Returns a summary the contents of this CDP status block.(package private) void
toXml(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.
-