Uses of Class
org.apache.bookkeeper.client.LedgerHandle
-
Packages that use LedgerHandle Package Description org.apache.bookkeeper.client BookKeeper Client.org.apache.bookkeeper.proto Classes related to the Bookkeeper protocol.org.apache.bookkeeper.replication Classes for replicating Bookkeeper data.org.apache.bookkeeper.streaming A java io stream wrapper over bookkeeper ledgers.org.apache.bookkeeper.tools.cli.commands.bookie Commands to operate a single bookie. -
-
Uses of LedgerHandle in org.apache.bookkeeper.client
Subclasses of LedgerHandle in org.apache.bookkeeper.client Modifier and Type Class Description classLedgerHandleAdvLedger Advanced handle extendsLedgerHandleto provide API to add entries with user supplied entryIds.(package private) classReadOnlyLedgerHandleRead only ledger handle.Fields in org.apache.bookkeeper.client declared as LedgerHandle Modifier and Type Field Description (package private) LedgerHandleBookKeeperAdmin.LedgerEntriesIterator. handle(package private) LedgerHandleExplicitLacFlushPolicy.ExplicitLacFlushPolicyImpl. lh(package private) LedgerHandleForceLedgerOp. lh(package private) LedgerHandleLedgerCreateOp. lh(package private) LedgerHandleLedgerFragmentReplicator.SingleFragmentCallback. lh(package private) LedgerHandleLedgerRecoveryOp. lh(package private) LedgerHandlePendingAddOp. lh(package private) LedgerHandlePendingReadLacOp. lh(package private) LedgerHandlePendingWriteLacOp. lh(package private) LedgerHandleReadOpBase. lh(package private) LedgerHandleSyncCounter. lh(package private) LedgerHandleTryReadLastConfirmedOp. lhFields in org.apache.bookkeeper.client with type parameters of type LedgerHandle Modifier and Type Field Description (package private) java.util.concurrent.CompletableFuture<LedgerHandle>LedgerRecoveryOp. promiseMethods in org.apache.bookkeeper.client that return LedgerHandle Modifier and Type Method Description LedgerHandleBookKeeper. createLedger(int ensSize, int writeQuorumSize, int ackQuorumSize, BookKeeper.DigestType digestType, byte[] passwd)Synchronous call to create ledger.LedgerHandleBookKeeper. createLedger(int ensSize, int writeQuorumSize, int ackQuorumSize, BookKeeper.DigestType digestType, byte[] passwd, java.util.Map<java.lang.String,byte[]> customMetadata)Synchronous call to create ledger.LedgerHandleBookKeeper. createLedger(int ensSize, int qSize, BookKeeper.DigestType digestType, byte[] passwd)Synchronous call to create ledger.LedgerHandleBookKeeper. createLedger(BookKeeper.DigestType digestType, byte[] passwd)Creates a new ledger.LedgerHandleBookKeeper. createLedgerAdv(int ensSize, int writeQuorumSize, int ackQuorumSize, BookKeeper.DigestType digestType, byte[] passwd)Synchronous call to create ledger.LedgerHandleBookKeeper. createLedgerAdv(int ensSize, int writeQuorumSize, int ackQuorumSize, BookKeeper.DigestType digestType, byte[] passwd, java.util.Map<java.lang.String,byte[]> customMetadata)Synchronous call to create ledger.LedgerHandleBookKeeper. createLedgerAdv(long ledgerId, int ensSize, int writeQuorumSize, int ackQuorumSize, BookKeeper.DigestType digestType, byte[] passwd, java.util.Map<java.lang.String,byte[]> customMetadata)Synchronously creates a new ledger using the interface which accepts a ledgerId as input.(package private) LedgerHandleSyncCounter. getLh()LedgerHandleBookKeeper. openLedger(long lId, BookKeeper.DigestType digestType, byte[] passwd)Synchronous open ledger call.LedgerHandleBookKeeperAdmin. openLedger(long lId)Open a ledger as an administrator.LedgerHandleBookKeeper. openLedgerNoRecovery(long lId, BookKeeper.DigestType digestType, byte[] passwd)Synchronous, unsafe open ledger call.LedgerHandleBookKeeperAdmin. 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 LedgerHandle Modifier and Type Method Description java.util.concurrent.CompletableFuture<LedgerHandle>LedgerRecoveryOp. initiate()Methods in org.apache.bookkeeper.client with parameters of type LedgerHandle Modifier and Type Method Description voidAsyncCallback.AddCallback. addComplete(int rc, LedgerHandle lh, long entryId, java.lang.Object ctx)Callback to implement if latency information is not desired.voidLedgerRecoveryOp. addComplete(int rc, LedgerHandle lh, long entryId, java.lang.Object ctx)voidSyncCallbackUtils.SyncAddCallback. addComplete(int rc, LedgerHandle lh, long entry, java.lang.Object ctx)Implementation of callback interface for synchronous read method.default voidAsyncCallback.AddCallback. addCompleteWithLatency(int rc, LedgerHandle lh, long entryId, long qwcLatency, java.lang.Object ctx)Callback declaration which additionally passes quorum write complete latency.voidAsyncCallback.AddCallbackWithLatency. addCompleteWithLatency(int rc, LedgerHandle lh, long entryId, long qwcLatency, java.lang.Object ctx)Callback declaration which additionally passes quorum write complete latency.voidAsyncCallback.AddLacCallback. addLacComplete(int rc, LedgerHandle lh, java.lang.Object ctx)Callback declaration.voidSyncCallbackUtils.LastAddConfirmedCallback. addLacComplete(int rc, LedgerHandle lh, java.lang.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, java.util.Set<BookieId> newBookies, java.util.function.BiConsumer<java.lang.Long,java.lang.Long> onReadEntryFailureCallback)voidLedgerChecker. checkLedger(LedgerHandle lh, BookkeeperInternalCallbacks.GenericCallback<java.util.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<java.util.Set<LedgerFragment>> cb, long percentageOfLedgerFragmentToBeVerified)voidAsyncCallback.CloseCallback. closeComplete(int rc, LedgerHandle lh, java.lang.Object ctx)Callback definition.voidLedgerHandle.NoopCloseCallback. closeComplete(int rc, LedgerHandle lh, java.lang.Object ctx)voidSyncCallbackUtils.SyncCloseCallback. closeComplete(int rc, LedgerHandle lh, java.lang.Object ctx)Close callback method.(package private) static PendingAddOpPendingAddOp. create(LedgerHandle lh, ClientContext clientCtx, java.util.List<BookieId> ensemble, io.netty.buffer.ByteBuf payload, java.util.EnumSet<WriteFlag> writeFlags, AsyncCallback.AddCallbackWithLatency cb, java.lang.Object ctx)voidAsyncCallback.CreateCallback. createComplete(int rc, LedgerHandle lh, java.lang.Object ctx)Declaration of callback method.voidSyncCallbackUtils.SyncCreateAdvCallback. createComplete(int rc, LedgerHandle lh, java.lang.Object ctx)Create callback implementation for synchronous create call.voidSyncCallbackUtils.SyncCreateCallback. createComplete(int rc, LedgerHandle lh, java.lang.Object ctx)Create callback implementation for synchronous create call.LedgerMetadataBookKeeperAdmin. getLedgerMetadata(LedgerHandle lh)voidLedgerRecoveryOp. onEntryComplete(int rc, LedgerHandle lh, LedgerEntry entry, java.lang.Object ctx)voidAsyncCallback.OpenCallback. openComplete(int rc, LedgerHandle lh, java.lang.Object ctx)Callback for asynchronous call to open ledger.(package private) voidLedgerOpenOp. openComplete(int rc, LedgerHandle lh)voidSyncCallbackUtils.SyncOpenCallback. openComplete(int rc, LedgerHandle lh, java.lang.Object ctx)Callback method for synchronous open operation.voidAsyncCallback.ReadCallback. readComplete(int rc, LedgerHandle lh, java.util.Enumeration<LedgerEntry> seq, java.lang.Object ctx)Callback declaration.voidSyncCallbackUtils.SyncReadCallback. readComplete(int rc, LedgerHandle lh, java.util.Enumeration<LedgerEntry> seq, java.lang.Object ctx)Implementation of callback interface for synchronous read method.(package private) voidLedgerFragmentReplicator. recoverLedgerFragmentEntry(java.lang.Long entryId, LedgerHandle lh, org.apache.zookeeper.AsyncCallback.VoidCallback ledgerFragmentEntryMcb, java.util.Set<BookieId> newBookies, java.util.function.BiConsumer<java.lang.Long,java.lang.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, java.util.Set<BookieId> targetBookieAddresses, java.util.function.BiConsumer<java.lang.Long,java.lang.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, java.util.function.BiConsumer<java.lang.Long,java.lang.Long> onReadEntryFailureCallback)Replicate the Ledger fragment to target Bookie passed.(package private) voidSyncCounter. setLh(LedgerHandle lh)(package private) static java.util.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 LedgerHandle Constructor Description BatchedReadOp(LedgerHandle lh, ClientContext clientCtx, long startEntryId, int maxCount, long maxSize, boolean isRecoveryRead)ExplicitLacFlushPolicyImpl(LedgerHandle lh, ClientContext clientCtx)ForceLedgerOp(LedgerHandle lh, BookieClient bookieClient, java.util.List<BookieId> ensemble, java.util.concurrent.CompletableFuture<java.lang.Void> cb)LedgerFragment(LedgerHandle lh, long firstEntryId, long lastKnownEntryId, java.util.Set<java.lang.Integer> bookieIndexes)LedgerRecoveryOp(LedgerHandle lh, ClientContext clientCtx)ListenerBasedPendingReadOp(LedgerHandle lh, ClientContext clientCtx, long startEntryId, long endEntryId, BookkeeperInternalCallbacks.ReadEntryListener listener, java.lang.Object ctx, boolean isRecoveryRead)PendingReadLacOp(LedgerHandle lh, BookieClient bookieClient, java.util.List<BookieId> ensemble, PendingReadLacOp.LacCallback cb)PendingReadOp(LedgerHandle lh, ClientContext clientCtx, long startEntryId, long endEntryId, boolean isRecoveryRead)PendingWriteLacOp(LedgerHandle lh, ClientContext clientCtx, java.util.List<BookieId> ensemble, AsyncCallback.AddLacCallback cb, java.lang.Object ctx)ReadLastConfirmedAndEntryOp(LedgerHandle lh, ClientContext clientCtx, java.util.List<BookieId> ensemble, ReadLastConfirmedAndEntryOp.LastConfirmedAndEntryCallback cb, long prevEntryId, long timeOutInMillis)ReadOpBase(LedgerHandle lh, ClientContext clientCtx, long startEntryId, long endEntryId, boolean isRecoveryRead)RecoveryReadOp(LedgerHandle lh, ClientContext clientCtx, long startEntryId, long endEntryId, BookkeeperInternalCallbacks.ReadEntryListener cb, java.lang.Object ctx)SingleFragmentCallback(org.apache.zookeeper.AsyncCallback.VoidCallback ledgerFragmentsMcb, LedgerHandle lh, LedgerManager ledgerManager, long fragmentStartId, java.util.Map<BookieId,BookieId> oldBookie2NewBookie)TryReadLastConfirmedOp(LedgerHandle lh, BookieClient bookieClient, java.util.List<BookieId> ensemble, ReadLastConfirmedOp.LastConfirmedDataCallback cb, long lac)Constructor parameters in org.apache.bookkeeper.client with type arguments of type LedgerHandle Constructor Description SyncCreateCallback(java.util.concurrent.CompletableFuture<? super LedgerHandle> future)SyncOpenCallback(java.util.concurrent.CompletableFuture<? super LedgerHandle> future) -
Uses of LedgerHandle in org.apache.bookkeeper.proto
Methods in org.apache.bookkeeper.proto with parameters of type LedgerHandle Modifier and Type Method Description voidBookkeeperInternalCallbacks.ReadEntryListener. onEntryComplete(int rc, LedgerHandle lh, LedgerEntry entry, java.lang.Object ctx)On given entry completed. -
Uses of LedgerHandle in org.apache.bookkeeper.replication
Methods in org.apache.bookkeeper.replication with parameters of type LedgerHandle Modifier and Type Method Description (package private) java.util.Set<LedgerFragment>ReplicationWorker. getUnderreplicatedFragments(LedgerHandle lh, java.lang.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 LedgerHandle Constructor Description LedgerInputStream(LedgerHandle lh)construct a outputstream from a ledger handle.LedgerInputStream(LedgerHandle lh, int size)construct a outputstream from a ledger handle.LedgerOutputStream(LedgerHandle lh)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 LedgerHandle Modifier and Type Method Description static voidSanityTestCommand. close(BookKeeper bk, LedgerHandle lh)
-