java.lang.Object
org.rrd4j.core.jrrd.PDPStatusBlock
Instances of this class model the primary data point status from an RRD file.
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static enumIndexes the fields of a primary data point's status block.Field Summary
FieldsModifier and TypeFieldDescription(package private) final Stringthe last reading from the data sourceprivate final longWhere the status block starts in the file.private final longSize of the status block, in bytes.(package private) final intnumber of seconds of unknown data(package private) final doublethe current value of the primary data pointConstructor Summary
ConstructorsConstructorDescriptionPDPStatusBlock(RRDFile file) Reads a PDPStatusBlock from the header of an RRD file.Method Summary
All Methods
Field Details
offset
private final long offsetWhere the status block starts in the file.size
private final long sizeSize of the status block, in bytes.lastReading
the last reading from the data sourceunknownSeconds
final int unknownSecondsnumber of seconds of unknown datavalue
final double valuethe 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
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