Package org.apache.bookkeeper.meta
Interface LayoutManager
-
- All Known Implementing Classes:
NullMetadataBookieDriver.NullLayoutManager,ZkLayoutManager
public interface LayoutManagerLayout manager for writing/reading/deleting ledger layout.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classLayoutManager.LedgerLayoutExistsExceptionThe Ledger layout exists exception.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteLedgerLayout()Delete ledger layout.LedgerLayoutreadLedgerLayout()Return the ledger layout.voidstoreLedgerLayout(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.IOExceptionDelete ledger layout.- Throws:
java.io.IOException
-
-