Type Parameters:
T - The type of RrdUpdater, used for generic type safety
All Known Subinterfaces:
Robin
All Known Implementing Classes:
Archive, ArcState, Datasource, Header, RobinArray, RobinMatrix, RrdDb

interface RrdUpdater<T extends RrdUpdater<T>>
Interface for RRD components that can update their state.

This interface defines the contract for objects that need to be updated when RRD data changes. It provides methods to access the backend storage, copy state between objects, and manage memory allocation.

  • Method Summary

    All Methods
    Modifier and Type
    Method
    Description
    void
    copyStateTo(T updater)
    Copies this updater's state into the given one.
    Returns the allocator used for this updater's memory allocation.
    Returns the backend store this updater reads and writes through.
  • Method Details

    • getRrdBackend

      RrdBackend getRrdBackend()
      Returns the backend store this updater reads and writes through.
      Returns:
      a RrdBackend object.
    • copyStateTo

      void copyStateTo(T updater) throws IOException
      Copies this updater's state into the given one.
      Parameters:
      updater - a RrdUpdater object.
      Throws:
      IOException - if the state cannot be read from the backend
    • getRrdAllocator

      RrdAllocator getRrdAllocator()
      Returns the allocator used for this updater's memory allocation.
      Returns:
      a RrdAllocator object.