|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jrobin.graph.RrdExport
public class RrdExport
RrdExport can be used to export graph-like datasources to XML format, by means of the ExportData object. More information about Export can be found in the RRDtool XPORT man page.
RrdExport needs a RrdExportDef that holds the configuration.
Field Summary | |
---|---|
protected long |
endTime
|
protected int |
numRows
|
protected long |
reducedEndTime
|
protected int |
reducedNumRows
|
protected long |
reducedStartTime
|
protected long |
reducedStep
|
protected java.util.HashMap |
sourceIndex
|
protected org.jrobin.graph.Source[] |
sources
|
protected long |
startTime
|
protected long[] |
timestamps
|
Constructor Summary | |
---|---|
RrdExport(RrdExportDef def)
Constructs a new RrdExport object based on a RrdExportDef containing the configuration. |
|
RrdExport(RrdExportDef def,
int maxRows)
Constructs a new RrdExport object based on a RrdExportDef containing the configuration and a ballpark figure of maximum number of rows in the reduced dataset. |
|
RrdExport(RrdExportDef def,
RrdOpener rrdOpener)
Constructs a new RrdExport object based on a RrdExportDef containing the configuration and a RrdOpener for opening the RRD datasources. |
|
RrdExport(RrdExportDef def,
RrdOpener rrdOpener,
int maxRows)
Constructs a new RrdExport object based on a RrdExportDef containing the configuration, RrdOpener for opening the RRD datasources and a ballpark figure of maximum number of rows in the reduced dataset. |
Method Summary | |
---|---|
protected void |
calculateSeries(int maxRows)
Fetches and calculates all datasources requested. |
protected ExportData |
createExportData()
Creates an ExportData object corresponding to the reduced dataset contained in the RrdExporter. |
ExportData |
fetch()
Fetches the reduced dataset based on provided RrdExportDef as a ExportData object. |
ExportData |
fetch(int maxRows)
Fetches the reduced dataset based on provided RrdExportDef as a ExportData object. |
RrdExportDef |
getExportDef()
|
int |
getMaxRows()
|
RrdOpener |
getRrdOpener()
|
void |
setExportDef(RrdExportDef def)
Sets the RrdExportDef that holds the export configuration. |
void |
setMaxRows(int maxRows)
Sets the maximum number of rows that the reduced dataset should contain. |
void |
setRrdOpener(RrdOpener rrdOpener)
Sets the rrd opener reference to use for data retrieval. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int numRows
protected int reducedNumRows
protected long startTime
protected long endTime
protected long reducedStartTime
protected long reducedEndTime
protected long reducedStep
protected long[] timestamps
protected org.jrobin.graph.Source[] sources
protected java.util.HashMap sourceIndex
Constructor Detail |
---|
public RrdExport(RrdExportDef def)
def
- Reference to a RrdExportDef object.public RrdExport(RrdExportDef def, RrdOpener rrdOpener)
def
- Reference to a RrdExportDef object.rrdOpener
- Reference to a RrdOpener object.public RrdExport(RrdExportDef def, int maxRows)
def
- Reference to a RrdExportDef object.maxRows
- Maximum number of rows in the reduced dataset.public RrdExport(RrdExportDef def, RrdOpener rrdOpener, int maxRows)
def
- Reference to a RrdExportDef object.rrdOpener
- Reference to a RrdOpener object.maxRows
- Maximum number of rows in the reduced dataset.Method Detail |
---|
public void setExportDef(RrdExportDef def)
def
- Reference to a RrdExportDef object.public void setRrdOpener(RrdOpener rrdOpener)
rrdOpener
- Reference to a RrdOpener object.public void setMaxRows(int maxRows)
maxRows
- Maximum number of rows in the reduced dataset.public ExportData fetch(int maxRows) throws RrdException, java.io.IOException
maxRows
- Maximum number of rows in the returned set.
RrdException
- Thrown in case of JRobin specific error.
java.io.IOException
- Thrown in case of I/O related error.public ExportData fetch() throws RrdException, java.io.IOException
RrdException
- Thrown in case of JRobin specific error.
java.io.IOException
- Thrown in case of I/O related error.public int getMaxRows()
protected void calculateSeries(int maxRows) throws RrdException, java.io.IOException
RrdException
- Thrown in case of a JRobin specific error.
java.io.IOException
- Thrown in case of a I/O related error.protected ExportData createExportData() throws RrdException
RrdException
- Thrown in case of JRobin specific error.public RrdExportDef getExportDef()
public RrdOpener getRrdOpener()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |