Package org.rrd4j.core.jrrd
Class PDPStatusBlock
java.lang.Object
org.rrd4j.core.jrrd.PDPStatusBlock
Instances of this class model the primary data point status from an RRD file.
- Version:
- $Revision: 1.1 $
- Author:
- Ciaran Treanor
-
Field Summary
Modifier and TypeFieldDescription(package private) String
(package private) int
(package private) double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the last reading from the data source.int
Returns the number of seconds of the current primary data point is unknown data.double
getValue()
Returns the current value of the primary data point.toString()
Returns a summary the contents of this PDP status block.
-
Field Details
-
lastReading
String lastReading -
unknownSeconds
int unknownSeconds -
value
double value
-
-
Constructor Details
-
PDPStatusBlock
PDPStatusBlock(RRDFile file) throws IOException - Throws:
IOException
-
-
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
Returns a summary the contents of this PDP status block.
-