Package org.rrd4j.core
Class DataImporter
java.lang.Object
org.rrd4j.core.DataImporter
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
RrdToolReader
,XmlReader
public abstract class DataImporter extends Object implements Closeable
An abstract class to import data from external source.
- Since:
- 3.5
- Author:
- Fabrice Bacchella
-
Constructor Summary
Constructors Constructor Description DataImporter()
-
Method Summary
Modifier and Type Method Description void
close()
abstract double
getAccumValue(int dsIndex)
abstract int
getArcCount()
abstract ConsolFun
getConsolFun(int arcIndex)
abstract int
getDsCount()
abstract String
getDsName(int dsIndex)
abstract DsType
getDsType(int dsIndex)
protected long
getEstimatedSize()
abstract long
getHeartbeat(int dsIndex)
abstract long
getLastUpdateTime()
abstract double
getLastValue(int dsIndex)
abstract double
getMaxValue(int dsIndex)
abstract double
getMinValue(int dsIndex)
abstract long
getNanSeconds(int dsIndex)
abstract int
getRows(int arcIndex)
abstract double
getStateAccumValue(int arcIndex, int dsIndex)
abstract int
getStateNanSteps(int arcIndex, int dsIndex)
abstract long
getStep()
abstract int
getSteps(int arcIndex)
abstract double[]
getValues(int arcIndex, int dsIndex)
abstract String
getVersion()
abstract double
getXff(int arcIndex)
(package private) void
release()
-
Constructor Details
-
DataImporter
public DataImporter()
-
-
Method Details
-
getVersion
- Throws:
IOException
-
getLastUpdateTime
- Throws:
IOException
-
getStep
- Throws:
IOException
-
getDsCount
- Throws:
IOException
-
getArcCount
- Throws:
IOException
-
getDsName
- Throws:
IOException
-
getDsType
- Throws:
IOException
-
getHeartbeat
- Throws:
IOException
-
getMinValue
- Throws:
IOException
-
getMaxValue
- Throws:
IOException
-
getLastValue
- Throws:
IOException
-
getAccumValue
- Throws:
IOException
-
getNanSeconds
- Throws:
IOException
-
getConsolFun
- Throws:
IOException
-
getXff
- Throws:
IOException
-
getSteps
- Throws:
IOException
-
getRows
- Throws:
IOException
-
getStateAccumValue
- Throws:
IOException
-
getStateNanSteps
- Throws:
IOException
-
getValues
- Throws:
IOException
-
getEstimatedSize
- Throws:
IOException
-
release
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-