java.lang.Object
org.rrd4j.data.Source
org.rrd4j.data.VDef
- All Implemented Interfaces:
NonRrdSource
RRD VDEF (Variable Definition) implementation.
Creates computed data sources by applying aggregation functions to existing data sources.
Creates computed data sources by applying aggregation functions to existing data sources.
Field Summary
FieldsFields inherited from class Source
timestamps, valuesModifier and TypeFieldDescriptionprotected long[]timestamps corresponding to data valuesprotected double[]data valuesConstructor Summary
Method Summary
Public MethodsModifier and TypeMethodDescriptionvoidcalculate(long tStart, long tEnd, DataProcessor dataProcessor) Aggregate the named source over the requested time range into this variable.(package private) StringRead the def name this source is published under.getValue()Value from the wrapped variable.(package private) double[]Returns the data values.Methods inherited from class Source
getName, getTimestamps, setTimestamps, setValuesModifier and TypeMethodDescription(package private) StringgetName()Returns the source name.(package private) long[]The time, in seconds since the epoch, of each recorded value.(package private) voidsetTimestamps(long[] timestamps) Sets the timestamps.(package private) voidsetValues(double[] values) Sets the data values.
Field Details
defName
Name other definitions use to refer to this one.var
The variable holding the defined value.
Constructor Details
VDef
Method Details
getDefName
calculate
Aggregate the named source over the requested time range into this variable.- Specified by:
calculatein interfaceNonRrdSource- Parameters:
tStart- start time for calculationtEnd- end time for calculationdataProcessor- DataProcessor object used to look up the named source
getValue
Value from the wrapped variable.- Returns:
- the value the wrapped Variable currently reports
getValues