Class RrdMemoryBackend


public class RrdMemoryBackend
extends ByteBufferBackend
Backend to be used to store all RRD bytes in memory.
  • Constructor Details

  • Method Details

    • setLength

      protected void setLength​(long length) throws IOException
      Description copied from class: RrdBackend
      Sets the number of bytes in the underlying RRD storage. This method is called only once, immediately after a new RRD storage gets created.
      Specified by:
      setLength in class RrdBackend
      Parameters:
      length - Length of the underlying RRD storage in bytes.
      Throws:
      IOException - Thrown in case of I/O error.
    • getLength

      public long getLength() throws IOException
      Description copied from class: RrdBackend
      Returns the number of RRD bytes in the underlying storage.
      Specified by:
      getLength in class RrdBackend
      Returns:
      Number of RRD bytes in the storage.
      Throws:
      IOException - Thrown in case of I/O error.
    • close

      protected void close() throws IOException
      This method is required by the base class definition, but it does not releases any memory resources at all.
      Overrides:
      close in class ByteBufferBackend
      Throws:
      IOException - if any.