All Known Subinterfaces:
AlertSampleManager
All Known Implementing Classes:
AbstractAlertSampleManager, AbstractMemorySampleManager, AbstractSampleManager, CacheSampleManager, CPUSampleManager, DiskSpaceSampleManager, HeapMemorySampleManager, HttpRequestSampleManager, HttpSessionSampleManager, NonHeapMemorySampleManager, SessionSampleManager, ThreadSampleManager, UptimeSampleManager

public interface SampleManager
Interface to be implemented for monitoring samples of data.
  • Method Summary

    Modifier and Type
    Method
    Description
    collect(org.rrd4j.core.Sample sample)
    Collect data into the Round Robin Database.
    void
    configureRRDDef(org.rrd4j.core.RrdDef rrdDef)
    Provides the definition to use for this RRD file.
    Provides the human readable description.
    Provides the id of this manager.
    Must be unique in the application.
    Provides the human readable name to use.
  • Method Details

    • getId

      Provides the id of this manager.
      Must be unique in the application.
      Returns:
      the id.
    • getLabel

      Provides the human readable name to use.
      Returns:
      the human readable name.
    • getDescription

      Provides the human readable description.
      Returns:
      the human readable description.
    • configureRRDDef

      void configureRRDDef(org.rrd4j.core.RrdDef rrdDef)
      Provides the definition to use for this RRD file. Called only when the RRD file is about to be created.
      Parameters:
      rrdDef - the Round Robin Database definition.
    • collect

      Map<String,Object> collect(org.rrd4j.core.Sample sample) throws IOException
      Collect data into the Round Robin Database.
      Parameters:
      sample - the sample to collect.
      Returns:
      The collected values for each datasource name.
      Throws:
      IOException - thrown in case of I/O error.