class XmlReader extends DataImporter
This class extends DataImporter to provide functionality for reading RRD definitions and data from XML files. It parses the XML structure and provides methods to access various RRD components like datasources, archives, and their properties.
| Constructor and Description |
|---|
XmlReader(String xmlFilePath)
Creates an XmlReader for the specified XML file.
|
| Modifier and Type | Method and 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()
Gets the last update time from the XML file.
|
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()
Gets the step interval from the XML file.
|
int |
getSteps(int arcIndex) |
double[] |
getValues(int arcIndex,
int dsIndex) |
String |
getVersion()
Gets the RRD version from the XML file.
|
double |
getXff(int arcIndex) |
close, getEstimatedSize, releaseXmlReader(String xmlFilePath) throws IOException
xmlFilePath - the path to the XML file to readIOException - if an I/O error occurs while reading the filepublic double getAccumValue(int dsIndex)
getAccumValue in class DataImporterpublic int getArcCount()
getArcCount in class DataImporterpublic ConsolFun getConsolFun(int arcIndex)
getConsolFun in class DataImporterpublic int getDsCount()
getDsCount in class DataImporterpublic String getDsName(int dsIndex)
getDsName in class DataImporterpublic DsType getDsType(int dsIndex)
getDsType in class DataImporterpublic long getHeartbeat(int dsIndex)
getHeartbeat in class DataImporterpublic long getLastUpdateTime()
getLastUpdateTime in class DataImporterpublic double getLastValue(int dsIndex)
getLastValue in class DataImporterpublic double getMaxValue(int dsIndex)
getMaxValue in class DataImporterpublic double getMinValue(int dsIndex)
getMinValue in class DataImporterpublic long getNanSeconds(int dsIndex)
getNanSeconds in class DataImporterpublic int getRows(int arcIndex)
getRows in class DataImporterpublic double getStateAccumValue(int arcIndex,
int dsIndex)
getStateAccumValue in class DataImporterpublic int getStateNanSteps(int arcIndex,
int dsIndex)
getStateNanSteps in class DataImporterpublic long getStep()
getStep in class DataImporterpublic int getSteps(int arcIndex)
getSteps in class DataImporterpublic double[] getValues(int arcIndex,
int dsIndex)
getValues in class DataImporterpublic String getVersion()
getVersion in class DataImporterpublic double getXff(int arcIndex)
getXff in class DataImporter