| Package | Description |
|---|---|
| org.apache.bookkeeper.client |
BookKeeper Client.
|
| Modifier and Type | Method and Description |
|---|---|
LedgerFragment |
LedgerFragment.subset(java.util.Set<java.lang.Integer> subset)
Return a ledger fragment contains subset of bookies.
|
| Modifier and Type | Method and Description |
|---|---|
(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.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
LedgerFragmentReplicator.replicate(LedgerHandle lh,
LedgerFragment lf,
org.apache.zookeeper.AsyncCallback.VoidCallback ledgerFragmentMcb,
java.util.Set<org.apache.bookkeeper.net.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.
|
void |
BookKeeperAdmin.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) 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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
LedgerChecker.checkLedger(LedgerHandle lh,
org.apache.bookkeeper.proto.BookkeeperInternalCallbacks.GenericCallback<java.util.Set<LedgerFragment>> cb)
Check that all the fragments in the passed in ledger, and report those
which are missing.
|
void |
LedgerChecker.checkLedger(LedgerHandle lh,
org.apache.bookkeeper.proto.BookkeeperInternalCallbacks.GenericCallback<java.util.Set<LedgerFragment>> cb,
long percentageOfLedgerFragmentToBeVerified) |
| Constructor and Description |
|---|
LedgerFragment(LedgerFragment lf,
java.util.Set<java.lang.Integer> subset) |
Copyright © 2011–2024 The Apache Software Foundation. All rights reserved.