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
-
public class LedgerDescriptorReadOnlyImpl extends LedgerDescriptorImpl
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 Constructor Description LedgerDescriptorReadOnlyImpl(long ledgerId, LedgerStorage storage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) long
addEntry(io.netty.buffer.ByteBuf entry)
(package private) void
checkAccess(byte[] masterKey)
(package private) boolean
setFenced()
-
Methods inherited from class org.apache.bookkeeper.bookie.LedgerDescriptorImpl
cancelWaitForLastAddConfirmedUpdate, fenceAndLogInJournal, getExplicitLac, getLastAddConfirmed, getLedgerId, getListOfEntriesOfLedger, isFenced, readEntry, setExplicitLac, waitForLastAddConfirmedUpdate
-
Methods inherited from class org.apache.bookkeeper.bookie.LedgerDescriptor
create, createLedgerFenceEntry, createReadOnly
-
-
-
-
Constructor Detail
-
LedgerDescriptorReadOnlyImpl
LedgerDescriptorReadOnlyImpl(long ledgerId, LedgerStorage storage)
-
-
Method Detail
-
setFenced
boolean setFenced() throws java.io.IOException
- Overrides:
setFenced
in classLedgerDescriptorImpl
- Throws:
java.io.IOException
-
addEntry
long addEntry(io.netty.buffer.ByteBuf entry) throws java.io.IOException
- Overrides:
addEntry
in classLedgerDescriptorImpl
- Throws:
java.io.IOException
-
checkAccess
void checkAccess(byte[] masterKey) throws BookieException, java.io.IOException
- Overrides:
checkAccess
in classLedgerDescriptorImpl
- Throws:
BookieException
java.io.IOException
-
-