- 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 MethodsModifier and TypeMethodDescriptionvoidcopyStateTo(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
RrdBackendobject.
copyStateTo
Copies this updater's state into the given one.- Parameters:
updater- aRrdUpdaterobject.- 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
RrdAllocatorobject.