java.lang.Object
org.rrd4j.graph.Source
org.rrd4j.graph.Def
Represents a data definition (DEF) in RRD graphs. A DEF defines a data source by specifying an RRD file, data source name, and consolidation function. This is the primary way to import data from RRD files into graphs.
Field Summary
FieldsConstructor Summary
ConstructorsConstructorDescriptionCreates a DEF naming the RRD, datasource, consolidation function and backend to read from, whichrequestData(DataProcessor)hands to a data processor as a source to fetch.Method Summary
All MethodsModifier and TypeMethodDescription(package private) voidrequestData(DataProcessor dproc) Request data
Field Details
rrdUri
The RRD file the definition reads.dsName
The data source to read.backend
Backend used to open the file.consolFun
Consolidation function to read with.
Constructor Details
Def
Def(String name, URI rrdUri, String dsName, ConsolFun consolFun, RrdBackendFactory backend) Creates a DEF naming the RRD, datasource, consolidation function and backend to read from, whichrequestData(DataProcessor)hands to a data processor as a source to fetch.- Parameters:
name- DEF name, used to identify this series within the graphrrdUri- location of the RRD holding the datasourcedsName- name of the datasource to read within that RRDconsolFun- consolidation function (CF) the archive values were produced withbackend- factory that opens the RRD when the definition is fetched
Method Details
requestData
Request data- Specified by:
requestDatain classSource- Parameters:
dproc- the data processor to receive the data