Class BookieInfoReader


  • public class BookieInfoReader
    extends java.lang.Object
    A utility class to read BookieInfoReader.BookieInfo from bookies.

    NOTE: This class is tended to be used by this project only. External users should not rely on it directly.

    • Constructor Detail

    • Method Detail

      • start

        public void start()
      • availableBookiesChanged

        void availableBookiesChanged​(java.util.Set<BookieId> updatedBookiesList)
      • getFreeDiskSpace

        java.util.Optional<java.lang.Long> getFreeDiskSpace​(BookieId bookie)
        Method to allow tests to block until bookie info is available.
        Parameters:
        bookie - to lookup
        Returns:
        None if absent, free disk space if present
      • getReadWriteBookieInfo

        void getReadWriteBookieInfo()
        Performs scan described by instanceState using the cached bookie information in bookieInfoMap.
      • onExit

        void onExit()