Uses of Class
org.apache.bookkeeper.client.LedgerHandle
Packages that use LedgerHandle
Package
Description
BookKeeper Client.
Classes related to the Bookkeeper protocol.
Classes for replicating Bookkeeper data.
A java io stream wrapper over bookkeeper ledgers.
Commands to operate a single bookie.
-
Uses of LedgerHandle in org.apache.bookkeeper.client
Subclasses of LedgerHandle in org.apache.bookkeeper.clientModifier and TypeClassDescriptionclassLedger Advanced handle extendsLedgerHandleto provide API to add entries with user supplied entryIds.(package private) classRead only ledger handle.Fields in org.apache.bookkeeper.client declared as LedgerHandleModifier and TypeFieldDescription(package private) final LedgerHandleBookKeeperAdmin.LedgerEntriesIterator.handle(package private) final LedgerHandleExplicitLacFlushPolicy.ExplicitLacFlushPolicyImpl.lh(package private) final LedgerHandleForceLedgerOp.lh(package private) LedgerHandleLedgerCreateOp.lh(package private) final LedgerHandleLedgerFragmentReplicator.SingleFragmentCallback.lh(package private) final LedgerHandleLedgerRecoveryOp.lh(package private) LedgerHandlePendingAddOp.lh(package private) LedgerHandlePendingReadLacOp.lh(package private) LedgerHandlePendingWriteLacOp.lh(package private) LedgerHandleReadOpBase.lh(package private) LedgerHandleSyncCounter.lh(package private) final LedgerHandleTryReadLastConfirmedOp.lhFields in org.apache.bookkeeper.client with type parameters of type LedgerHandleModifier and TypeFieldDescription(package private) final CompletableFuture<LedgerHandle>LedgerRecoveryOp.promiseMethods in org.apache.bookkeeper.client that return LedgerHandleModifier and TypeMethodDescriptionBookKeeper.createLedger(int ensSize, int writeQuorumSize, int ackQuorumSize, BookKeeper.DigestType digestType, byte[] passwd) Synchronous call to create ledger.BookKeeper.createLedger(int ensSize, int writeQuorumSize, int ackQuorumSize, BookKeeper.DigestType digestType, byte[] passwd, Map<String, byte[]> customMetadata) Synchronous call to create ledger.BookKeeper.createLedger(int ensSize, int qSize, BookKeeper.DigestType digestType, byte[] passwd) Synchronous call to create ledger.BookKeeper.createLedger(BookKeeper.DigestType digestType, byte[] passwd) Creates a new ledger.BookKeeper.createLedgerAdv(int ensSize, int writeQuorumSize, int ackQuorumSize, BookKeeper.DigestType digestType, byte[] passwd) Synchronous call to create ledger.BookKeeper.createLedgerAdv(int ensSize, int writeQuorumSize, int ackQuorumSize, BookKeeper.DigestType digestType, byte[] passwd, Map<String, byte[]> customMetadata) Synchronous call to create ledger.BookKeeper.createLedgerAdv(long ledgerId, int ensSize, int writeQuorumSize, int ackQuorumSize, BookKeeper.DigestType digestType, byte[] passwd, Map<String, byte[]> customMetadata) Synchronously creates a new ledger using the interface which accepts a ledgerId as input.(package private) LedgerHandleSyncCounter.getLh()BookKeeper.openLedger(long lId, BookKeeper.DigestType digestType, byte[] passwd) Synchronous open ledger call.BookKeeper.openLedger(long lId, BookKeeper.DigestType digestType, byte[] passwd, boolean keepUpdateMetadata) Synchronous open ledger call.BookKeeperAdmin.openLedger(long lId) Open a ledger as an administrator.BookKeeper.openLedgerNoRecovery(long lId, BookKeeper.DigestType digestType, byte[] passwd) Synchronous, unsafe open ledger call.BookKeeperAdmin.openLedgerNoRecovery(long lId) Open a ledger as an administrator without recovering the ledger.Methods in org.apache.bookkeeper.client that return types with arguments of type LedgerHandleMethods in org.apache.bookkeeper.client with parameters of type LedgerHandleModifier and TypeMethodDescriptionvoidAsyncCallback.AddCallback.addComplete(int rc, LedgerHandle lh, long entryId, Object ctx) Callback to implement if latency information is not desired.voidLedgerRecoveryOp.addComplete(int rc, LedgerHandle lh, long entryId, Object ctx) voidSyncCallbackUtils.SyncAddCallback.addComplete(int rc, LedgerHandle lh, long entry, Object ctx) Implementation of callback interface for synchronous read method.default voidAsyncCallback.AddCallback.addCompleteWithLatency(int rc, LedgerHandle lh, long entryId, long qwcLatency, Object ctx) Callback declaration which additionally passes quorum write complete latency.voidAsyncCallback.AddCallbackWithLatency.addCompleteWithLatency(int rc, LedgerHandle lh, long entryId, long qwcLatency, Object ctx) Callback declaration which additionally passes quorum write complete latency.voidAsyncCallback.AddLacCallback.addLacComplete(int rc, LedgerHandle lh, Object ctx) Callback declaration.voidSyncCallbackUtils.LastAddConfirmedCallback.addLacComplete(int rc, LedgerHandle lh, Object ctx) Implementation of callback interface for synchronous read method.(package private) voidLedgerFragmentReplicator.batchRecoverLedgerFragmentEntry(long startEntryId, long endEntryId, LedgerHandle lh, org.apache.zookeeper.AsyncCallback.VoidCallback ledgerFragmentMcb, Set<BookieId> newBookies, BiConsumer<Long, Long> onReadEntryFailureCallback) voidLedgerChecker.checkLedger(LedgerHandle lh, BookkeeperInternalCallbacks.GenericCallback<Set<LedgerFragment>> cb) Check that all the fragments in the passed in ledger, and report those which are missing.voidLedgerChecker.checkLedger(LedgerHandle lh, BookkeeperInternalCallbacks.GenericCallback<Set<LedgerFragment>> cb, long percentageOfLedgerFragmentToBeVerified) voidAsyncCallback.CloseCallback.closeComplete(int rc, LedgerHandle lh, Object ctx) Callback definition.voidLedgerHandle.NoopCloseCallback.closeComplete(int rc, LedgerHandle lh, Object ctx) voidSyncCallbackUtils.SyncCloseCallback.closeComplete(int rc, LedgerHandle lh, Object ctx) Close callback method.(package private) static PendingAddOpPendingAddOp.create(LedgerHandle lh, ClientContext clientCtx, List<BookieId> ensemble, io.netty.buffer.ByteBuf payload, EnumSet<WriteFlag> writeFlags, AsyncCallback.AddCallbackWithLatency cb, Object ctx) voidAsyncCallback.CreateCallback.createComplete(int rc, LedgerHandle lh, Object ctx) Declaration of callback method.voidSyncCallbackUtils.SyncCreateAdvCallback.createComplete(int rc, LedgerHandle lh, Object ctx) Create callback implementation for synchronous create call.voidSyncCallbackUtils.SyncCreateCallback.createComplete(int rc, LedgerHandle lh, Object ctx) Create callback implementation for synchronous create call.BookKeeperAdmin.getLedgerMetadata(LedgerHandle lh) voidLedgerRecoveryOp.onEntryComplete(int rc, LedgerHandle lh, LedgerEntry entry, Object ctx) voidAsyncCallback.OpenCallback.openComplete(int rc, LedgerHandle lh, Object ctx) Callback for asynchronous call to open ledger.(package private) voidLedgerOpenOp.openComplete(int rc, LedgerHandle lh) voidSyncCallbackUtils.SyncOpenCallback.openComplete(int rc, LedgerHandle lh, Object ctx) Callback method for synchronous open operation.voidAsyncCallback.ReadCallback.readComplete(int rc, LedgerHandle lh, Enumeration<LedgerEntry> seq, Object ctx) Callback declaration.voidSyncCallbackUtils.SyncReadCallback.readComplete(int rc, LedgerHandle lh, Enumeration<LedgerEntry> seq, Object ctx) Implementation of callback interface for synchronous read method.(package private) voidLedgerFragmentReplicator.recoverLedgerFragmentEntry(Long entryId, LedgerHandle lh, org.apache.zookeeper.AsyncCallback.VoidCallback ledgerFragmentEntryMcb, Set<BookieId> newBookies, BiConsumer<Long, Long> onReadEntryFailureCallback) This method asynchronously recovers a specific ledger entry by reading the values via the BookKeeper Client (which would read it from the other replicas) and then writing it to the chosen new bookie.(package private) voidLedgerFragmentReplicator.replicate(LedgerHandle lh, LedgerFragment lf, org.apache.zookeeper.AsyncCallback.VoidCallback ledgerFragmentMcb, Set<BookieId> targetBookieAddresses, BiConsumer<Long, Long> onReadEntryFailureCallback) This method replicate a ledger fragment which is a contiguous portion of a ledger that was stored in an ensemble that included the failed bookie.voidBookKeeperAdmin.replicateLedgerFragment(LedgerHandle lh, LedgerFragment ledgerFragment, BiConsumer<Long, Long> onReadEntryFailureCallback) Replicate the Ledger fragment to target Bookie passed.(package private) voidSyncCounter.setLh(LedgerHandle lh) (package private) static Set<LedgerFragment>LedgerFragmentReplicator.splitIntoSubFragments(LedgerHandle lh, LedgerFragment ledgerFragment, long rereplicationEntryBatchSize) Split the full fragment into batched entry fragments by keeping rereplicationEntryBatchSize of entries in each one and can treat them as sub fragments.Constructors in org.apache.bookkeeper.client with parameters of type LedgerHandleModifierConstructorDescription(package private)BatchedReadOp(LedgerHandle lh, ClientContext clientCtx, long startEntryId, int maxCount, long maxSize, boolean isRecoveryRead) (package private)ExplicitLacFlushPolicyImpl(LedgerHandle lh, ClientContext clientCtx) (package private)ForceLedgerOp(LedgerHandle lh, BookieClient bookieClient, List<BookieId> ensemble, CompletableFuture<Void> cb) LedgerFragment(LedgerHandle lh, long firstEntryId, long lastKnownEntryId, Set<Integer> bookieIndexes) LedgerRecoveryOp(LedgerHandle lh, ClientContext clientCtx) (package private)ListenerBasedPendingReadOp(LedgerHandle lh, ClientContext clientCtx, long startEntryId, long endEntryId, BookkeeperInternalCallbacks.ReadEntryListener listener, Object ctx, boolean isRecoveryRead) (package private)PendingReadLacOp(LedgerHandle lh, BookieClient bookieClient, List<BookieId> ensemble, PendingReadLacOp.LacCallback cb) (package private)PendingReadOp(LedgerHandle lh, ClientContext clientCtx, long startEntryId, long endEntryId, boolean isRecoveryRead) (package private)PendingWriteLacOp(LedgerHandle lh, ClientContext clientCtx, List<BookieId> ensemble, AsyncCallback.AddLacCallback cb, Object ctx) (package private)ReadLastConfirmedAndEntryOp(LedgerHandle lh, ClientContext clientCtx, List<BookieId> ensemble, ReadLastConfirmedAndEntryOp.LastConfirmedAndEntryCallback cb, long prevEntryId, long timeOutInMillis) protectedReadOpBase(LedgerHandle lh, ClientContext clientCtx, long startEntryId, long endEntryId, boolean isRecoveryRead) (package private)RecoveryReadOp(LedgerHandle lh, ClientContext clientCtx, long startEntryId, long endEntryId, BookkeeperInternalCallbacks.ReadEntryListener cb, Object ctx) (package private)SingleFragmentCallback(org.apache.zookeeper.AsyncCallback.VoidCallback ledgerFragmentsMcb, LedgerHandle lh, LedgerManager ledgerManager, long fragmentStartId, Map<BookieId, BookieId> oldBookie2NewBookie) (package private)TryReadLastConfirmedOp(LedgerHandle lh, BookieClient bookieClient, List<BookieId> ensemble, ReadLastConfirmedOp.LastConfirmedDataCallback cb, long lac) Constructor parameters in org.apache.bookkeeper.client with type arguments of type LedgerHandleModifierConstructorDescriptionSyncCreateCallback(CompletableFuture<? super LedgerHandle> future) SyncOpenCallback(CompletableFuture<? super LedgerHandle> future) -
Uses of LedgerHandle in org.apache.bookkeeper.proto
Methods in org.apache.bookkeeper.proto with parameters of type LedgerHandleModifier and TypeMethodDescriptionvoidBookkeeperInternalCallbacks.ReadEntryListener.onEntryComplete(int rc, LedgerHandle lh, LedgerEntry entry, Object ctx) On given entry completed. -
Uses of LedgerHandle in org.apache.bookkeeper.replication
Methods in org.apache.bookkeeper.replication with parameters of type LedgerHandleModifier and TypeMethodDescription(package private) Set<LedgerFragment>ReplicationWorker.getUnderreplicatedFragments(LedgerHandle lh, Long ledgerVerificationPercentage) Gets the under replicated fragments. -
Uses of LedgerHandle in org.apache.bookkeeper.streaming
Constructors in org.apache.bookkeeper.streaming with parameters of type LedgerHandleModifierConstructorDescriptionconstruct a outputstream from a ledger handle.LedgerInputStream(LedgerHandle lh, int size) construct a outputstream from a ledger handle.construct a outputstream from a ledger handle.LedgerOutputStream(LedgerHandle lh, int size) construct a outputstream from a ledger handle. -
Uses of LedgerHandle in org.apache.bookkeeper.tools.cli.commands.bookie
Methods in org.apache.bookkeeper.tools.cli.commands.bookie with parameters of type LedgerHandleModifier and TypeMethodDescriptionstatic voidSanityTestCommand.close(BookKeeper bk, LedgerHandle lh)