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
All Methods Instance Methods Concrete Methods 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()
-
Methods inherited from class org.rrd4j.core.DataImporter
close, getEstimatedSize
-
-
-
-
Constructor Detail
-
RrdToolReader
RrdToolReader(String rrdPath) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getVersion
public String 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
public int getArcCount() throws IOException
- Specified by:
getArcCount
in classDataImporter
- Throws:
IOException
-
getDsName
public String getDsName(int dsIndex)
- Specified by:
getDsName
in classDataImporter
-
getDsType
public DsType getDsType(int dsIndex) throws IOException
- 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
public ConsolFun getConsolFun(int arcIndex)
- 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
public int getRows(int arcIndex) throws IOException
- Specified by:
getRows
in classDataImporter
- Throws:
IOException
-
getStateAccumValue
public double getStateAccumValue(int arcIndex, int dsIndex) throws IOException
- Specified by:
getStateAccumValue
in classDataImporter
- Throws:
IOException
-
getStateNanSteps
public int getStateNanSteps(int arcIndex, int dsIndex) throws IOException
- Specified by:
getStateNanSteps
in classDataImporter
- Throws:
IOException
-
getValues
public double[] getValues(int arcIndex, int dsIndex) throws IOException
- Specified by:
getValues
in classDataImporter
- Throws:
IOException
-
release
void release() throws IOException
- Overrides:
release
in classDataImporter
- Throws:
IOException
-
-