Package org.apache.bookkeeper.meta
Interface LayoutManager
-
- All Known Implementing Classes:
NullMetadataBookieDriver.NullLayoutManager
,ZkLayoutManager
public interface LayoutManager
Layout manager for writing/reading/deleting ledger layout.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
LayoutManager.LedgerLayoutExistsException
The Ledger layout exists exception.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deleteLedgerLayout()
Delete ledger layout.LedgerLayout
readLedgerLayout()
Return the ledger layout.void
storeLedgerLayout(LedgerLayout layout)
Store the ledger layout.
-
-
-
Method Detail
-
readLedgerLayout
LedgerLayout readLedgerLayout() throws java.io.IOException
Return the ledger layout.- Returns:
- the ledger layout
- Throws:
java.io.IOException
- when fail to read ledger layout.
-
storeLedgerLayout
void storeLedgerLayout(LedgerLayout layout) throws java.io.IOException
Store the ledger layout.- Parameters:
layout
- ledger layout- Throws:
java.io.IOException
- when fail to store ledger layout.
-
deleteLedgerLayout
void deleteLedgerLayout() throws java.io.IOException
Delete ledger layout.- Throws:
java.io.IOException
-
-