java.lang.Object
org.rrd4j.graph.Source
Direct Known Subclasses:
CDef, Def, PDef, TDef, VDef

abstract class Sourceextends Object
Abstract base class for data sources in RRD graphs. Represents a named data source that can provide values for graphing. All data sources must implement requestData() to supply data to the processor.
  • Field Details

    • name

      final String name
      The name of this data source
  • Constructor Details

    • Source

      Source(String name)
      Creates a new data source with the specified name.
      Parameters:
      name - the name of this data source
  • Method Details

    • requestData

      abstract void requestData(DataProcessor dproc)
      Requests data from this source and provides it to the data processor.
      Parameters:
      dproc - the data processor to receive the data