Interface LayoutManager

All Known Implementing Classes:
NullMetadataBookieDriver.NullLayoutManager, ZkLayoutManager

public interface LayoutManager
Layout manager for writing/reading/deleting ledger layout.
  • Method Details

    • readLedgerLayout

      LedgerLayout readLedgerLayout() throws IOException
      Return the ledger layout.
      Returns:
      the ledger layout
      Throws:
      IOException - when fail to read ledger layout.
    • storeLedgerLayout

      void storeLedgerLayout(LedgerLayout layout) throws IOException
      Store the ledger layout.
      Parameters:
      layout - ledger layout
      Throws:
      IOException - when fail to store ledger layout.
    • deleteLedgerLayout

      void deleteLedgerLayout() throws IOException
      Delete ledger layout.
      Throws:
      IOException