Package org.apache.bookkeeper.bookie
Class ReadOnlyBookie
java.lang.Object
org.apache.bookkeeper.bookie.BookieImpl
org.apache.bookkeeper.bookie.ReadOnlyBookie
- All Implemented Interfaces:
Bookie
Implements a read only bookie.
ReadOnlyBookie is force started as readonly, and will not change to writable.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.bookkeeper.bookie.BookieImpl
BookieImpl.NopWriteCallbackNested classes/interfaces inherited from interface org.apache.bookkeeper.bookie.Bookie
Bookie.NoEntryException, Bookie.NoLedgerException -
Field Summary
Fields inherited from class org.apache.bookkeeper.bookie.BookieImpl
bookieServiceInfoProvider, conf, dirsMonitor, entryLogPerLedgerEnabled, handles, journalDirectories, journals, ledgerStorage, lock, METAENTRY_ID_FENCE_KEY, METAENTRY_ID_FORCE_LEDGER, METAENTRY_ID_LEDGER_EXPLICITLAC, METAENTRY_ID_LEDGER_KEY, registrationManager, shutdownTriggered, stateManager, statsLogger, syncThread -
Constructor Summary
ConstructorsConstructorDescriptionReadOnlyBookie(ServerConfiguration conf, RegistrationManager registrationManager, LedgerStorage storage, DiskChecker diskChecker, LedgerDirsManager ledgerDirsManager, LedgerDirsManager indexDirsManager, StatsLogger statsLogger, io.netty.buffer.ByteBufAllocator allocator, Supplier<BookieServiceInfo> bookieServiceInfoProvider) -
Method Summary
Methods inherited from class org.apache.bookkeeper.bookie.BookieImpl
addEntry, cancelWaitForLastAddConfirmedUpdate, checkDirectoryStructure, createExplicitLACEntry, createMasterKeyEntry, fenceLedger, forceLedger, format, getAllocator, getBookieAddress, getBookieId, getCurrentDirectories, getCurrentDirectory, getExitCode, getExplicitLac, getIndexDirsManager, getJournals, getLedgerDirsManager, getLedgerForEntry, getLedgerStorage, getListOfEntriesOfLedger, getStateManager, getTotalDiskSpace, getTotalFreeSpace, initializeStateManager, isAlive, isAvailableForHighPriorityWrites, isReadOnly, isRunning, join, mountLedgerStorageOffline, newBookieImpl, readEntry, readJournal, readLastAddConfirmed, recoveryAddEntry, run, setExplicitLac, shutdown, shutdown, start, triggerBookieShutdown, waitForLastAddConfirmedUpdate
-
Constructor Details
-
ReadOnlyBookie
public ReadOnlyBookie(ServerConfiguration conf, RegistrationManager registrationManager, LedgerStorage storage, DiskChecker diskChecker, LedgerDirsManager ledgerDirsManager, LedgerDirsManager indexDirsManager, StatsLogger statsLogger, io.netty.buffer.ByteBufAllocator allocator, Supplier<BookieServiceInfo> bookieServiceInfoProvider) throws IOException, org.apache.zookeeper.KeeperException, InterruptedException, BookieException - Throws:
IOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionBookieException
-