Package org.rrd4j.core
Class RrdToolReader
java.lang.Object
org.rrd4j.core.DataImporter
org.rrd4j.core.RrdToolReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
class RrdToolReader extends DataImporter
-
Constructor Summary
Constructors Constructor Description RrdToolReader(String rrdPath)
-
Method Summary
Modifier and Type Method Description double
getAccumValue(int dsIndex)
int
getArcCount()
ConsolFun
getConsolFun(int arcIndex)
int
getDsCount()
String
getDsName(int dsIndex)
DsType
getDsType(int dsIndex)
long
getHeartbeat(int dsIndex)
long
getLastUpdateTime()
double
getLastValue(int dsIndex)
double
getMaxValue(int dsIndex)
double
getMinValue(int dsIndex)
long
getNanSeconds(int dsIndex)
int
getRows(int arcIndex)
double
getStateAccumValue(int arcIndex, int dsIndex)
int
getStateNanSteps(int arcIndex, int dsIndex)
long
getStep()
int
getSteps(int arcIndex)
double[]
getValues(int arcIndex, int dsIndex)
String
getVersion()
double
getXff(int arcIndex)
(package private) void
release()
-
Constructor Details
-
RrdToolReader
- Throws:
IOException
-
-
Method Details
-
getVersion
- Specified by:
getVersion
in classDataImporter
-
getLastUpdateTime
public long getLastUpdateTime()- Specified by:
getLastUpdateTime
in classDataImporter
-
getStep
public long getStep()- Specified by:
getStep
in classDataImporter
-
getDsCount
public int getDsCount()- Specified by:
getDsCount
in classDataImporter
-
getArcCount
- Specified by:
getArcCount
in classDataImporter
- Throws:
IOException
-
getDsName
- Specified by:
getDsName
in classDataImporter
-
getDsType
- Specified by:
getDsType
in classDataImporter
- Throws:
IOException
-
getHeartbeat
public long getHeartbeat(int dsIndex)- Specified by:
getHeartbeat
in classDataImporter
-
getMinValue
public double getMinValue(int dsIndex)- Specified by:
getMinValue
in classDataImporter
-
getMaxValue
public double getMaxValue(int dsIndex)- Specified by:
getMaxValue
in classDataImporter
-
getLastValue
public double getLastValue(int dsIndex)- Specified by:
getLastValue
in classDataImporter
-
getAccumValue
public double getAccumValue(int dsIndex)- Specified by:
getAccumValue
in classDataImporter
-
getNanSeconds
public long getNanSeconds(int dsIndex)- Specified by:
getNanSeconds
in classDataImporter
-
getConsolFun
- Specified by:
getConsolFun
in classDataImporter
-
getXff
public double getXff(int arcIndex)- Specified by:
getXff
in classDataImporter
-
getSteps
public int getSteps(int arcIndex)- Specified by:
getSteps
in classDataImporter
-
getRows
- Specified by:
getRows
in classDataImporter
- Throws:
IOException
-
getStateAccumValue
- Specified by:
getStateAccumValue
in classDataImporter
- Throws:
IOException
-
getStateNanSteps
- Specified by:
getStateNanSteps
in classDataImporter
- Throws:
IOException
-
getValues
- Specified by:
getValues
in classDataImporter
- Throws:
IOException
-
release
- Overrides:
release
in classDataImporter
- Throws:
IOException
-