Package org.apache.bookkeeper.bookie
Class ReadOnlyBookie
- java.lang.Object
-
- org.apache.bookkeeper.bookie.BookieImpl
-
- org.apache.bookkeeper.bookie.ReadOnlyBookie
-
- All Implemented Interfaces:
Bookie
public class ReadOnlyBookie extends BookieImpl
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.NopWriteCallback
-
Nested 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
Constructors Constructor Description ReadOnlyBookie(ServerConfiguration conf, RegistrationManager registrationManager, LedgerStorage storage, DiskChecker diskChecker, LedgerDirsManager ledgerDirsManager, LedgerDirsManager indexDirsManager, StatsLogger statsLogger, io.netty.buffer.ByteBufAllocator allocator, java.util.function.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 Detail
-
ReadOnlyBookie
public ReadOnlyBookie(ServerConfiguration conf, RegistrationManager registrationManager, LedgerStorage storage, DiskChecker diskChecker, LedgerDirsManager ledgerDirsManager, LedgerDirsManager indexDirsManager, StatsLogger statsLogger, io.netty.buffer.ByteBufAllocator allocator, java.util.function.Supplier<BookieServiceInfo> bookieServiceInfoProvider) throws java.io.IOException, org.apache.zookeeper.KeeperException, java.lang.InterruptedException, BookieException
- Throws:
java.io.IOException
org.apache.zookeeper.KeeperException
java.lang.InterruptedException
BookieException
-
-