class PDefextends Source
Represents a plottable data definition (PDEF) in RRD graphs. A PDEF defines a data source using a plottable object that can generate values programmatically.
  • Field Details

    • plottable

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

    • PDef

      PDef(String name, IPlottable plottable)
      Creates a plottable data definition under the given data source name.
      Parameters:
      name - the data source name this definition is registered as
      plottable - the plottable that generates the data source values
  • Method Details

    • requestData

      void requestData(DataProcessor dproc)
      Data processor to register the datasource with.
      Specified by:
      requestData in class Source
      Parameters:
      dproc - data processor to register the datasource with