Package org.apache.bookkeeper.bookie
Class LedgerDescriptorReadOnlyImpl
java.lang.Object
org.apache.bookkeeper.bookie.LedgerDescriptor
org.apache.bookkeeper.bookie.LedgerDescriptorImpl
org.apache.bookkeeper.bookie.LedgerDescriptorReadOnlyImpl
Implements a ledger inside a bookie. In particular, it implements operations
to write entries to a ledger and read entries from a ledger.
-
Field Summary
Fields inherited from class org.apache.bookkeeper.bookie.LedgerDescriptorImpl
ledgerStorage, masterKey -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) longaddEntry(io.netty.buffer.ByteBuf entry) (package private) voidcheckAccess(byte[] masterKey) (package private) booleanMethods inherited from class org.apache.bookkeeper.bookie.LedgerDescriptorImpl
cancelWaitForLastAddConfirmedUpdate, fenceAndLogInJournal, getExplicitLac, getLastAddConfirmed, getLedgerId, getListOfEntriesOfLedger, isFenced, readEntry, setExplicitLac, waitForLastAddConfirmedUpdateMethods inherited from class org.apache.bookkeeper.bookie.LedgerDescriptor
create, createLedgerFenceEntry, createReadOnly
-
Constructor Details
-
LedgerDescriptorReadOnlyImpl
LedgerDescriptorReadOnlyImpl(long ledgerId, LedgerStorage storage)
-
-
Method Details
-
setFenced
- Overrides:
setFencedin classLedgerDescriptorImpl- Throws:
IOException
-
addEntry
- Overrides:
addEntryin classLedgerDescriptorImpl- Throws:
IOException
-
checkAccess
- Overrides:
checkAccessin classLedgerDescriptorImpl- Throws:
BookieExceptionIOException
-