Class FileStoreMonitorAdapter

  • All Implemented Interfaces:
    FileStoreMonitor

    public class FileStoreMonitorAdapter
    extends java.lang.Object
    implements FileStoreMonitor
    A void implementation of the FileStoreMonitor. Can be used for the testing purposes or for the extension.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void flushed()
      Notifies the monitor when journal data is flushed to disk.
      void reclaimed​(long bytes)
      Notifies the monitor when memory is reclaimed
      void written​(long bytes)
      Notifies the monitor when data is written
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileStoreMonitorAdapter

        public FileStoreMonitorAdapter()
    • Method Detail

      • written

        public void written​(long bytes)
        Description copied from interface: FileStoreMonitor
        Notifies the monitor when data is written
        Specified by:
        written in interface FileStoreMonitor
        Parameters:
        bytes - number of bytes written
      • reclaimed

        public void reclaimed​(long bytes)
        Description copied from interface: FileStoreMonitor
        Notifies the monitor when memory is reclaimed
        Specified by:
        reclaimed in interface FileStoreMonitor
        Parameters:
        bytes - number of bytes reclaimed
      • flushed

        public void flushed()
        Description copied from interface: FileStoreMonitor
        Notifies the monitor when journal data is flushed to disk.
        Specified by:
        flushed in interface FileStoreMonitor