All Implemented Interfaces:
NonRrdSource

class PDefextends Source implements NonRrdSource
RRD PDEF (Plottable Data Source Definition) implementation.
Creates data sources from plottable objects that can provide values based on timestamps.
  • Field Details

    • plottable

      private final IPlottable plottable
      The object whose rendering is exposed as a graph source.
  • Constructor Details

    • PDef

      PDef(String name, IPlottable plottable2)
      Create a plottable backed by the named data source.
      Parameters:
      name - the name of the data source
      plottable2 - the plottable object to provide values
  • Method Details

    • calculate

      public void calculate(long tStart, long tEnd, DataProcessor dataProcessor)
      Read one value per timestamp from the plottable and store them.
      Specified by:
      calculate in interface NonRrdSource
      Parameters:
      tStart - first timestamp of the interval, inclusive
      tEnd - last timestamp of the interval, exclusive
      dataProcessor - the processor receiving the computed values