Package org.apache.bookkeeper.client
Class LedgerFragmentReplicator.SingleFragmentCallback
java.lang.Object
org.apache.bookkeeper.client.LedgerFragmentReplicator.SingleFragmentCallback
- All Implemented Interfaces:
org.apache.zookeeper.AsyncCallback,org.apache.zookeeper.AsyncCallback.VoidCallback
- Enclosing class:
- LedgerFragmentReplicator
static class LedgerFragmentReplicator.SingleFragmentCallback
extends Object
implements org.apache.zookeeper.AsyncCallback.VoidCallback
Callback for recovery of a single ledger fragment. Once the fragment has
had all entries replicated, update the ensemble in zookeeper. Once
finished propagate callback up to ledgerFragmentsMcb which should be a
multicallback responsible for all fragments in a single ledger
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.zookeeper.AsyncCallback
org.apache.zookeeper.AsyncCallback.ACLCallback, org.apache.zookeeper.AsyncCallback.AllChildrenNumberCallback, org.apache.zookeeper.AsyncCallback.Children2Callback, org.apache.zookeeper.AsyncCallback.ChildrenCallback, org.apache.zookeeper.AsyncCallback.Create2Callback, org.apache.zookeeper.AsyncCallback.DataCallback, org.apache.zookeeper.AsyncCallback.EphemeralsCallback, org.apache.zookeeper.AsyncCallback.MultiCallback, org.apache.zookeeper.AsyncCallback.StatCallback, org.apache.zookeeper.AsyncCallback.StringCallback, org.apache.zookeeper.AsyncCallback.VoidCallback -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final long(package private) final org.apache.zookeeper.AsyncCallback.VoidCallback(package private) final LedgerManager(package private) final LedgerHandle -
Constructor Summary
ConstructorsConstructorDescriptionSingleFragmentCallback(org.apache.zookeeper.AsyncCallback.VoidCallback ledgerFragmentsMcb, LedgerHandle lh, LedgerManager ledgerManager, long fragmentStartId, Map<BookieId, BookieId> oldBookie2NewBookie) -
Method Summary
-
Field Details
-
ledgerFragmentsMcb
final org.apache.zookeeper.AsyncCallback.VoidCallback ledgerFragmentsMcb -
lh
-
ledgerManager
-
fragmentStartId
final long fragmentStartId -
oldBookie2NewBookie
-
-
Constructor Details
-
SingleFragmentCallback
SingleFragmentCallback(org.apache.zookeeper.AsyncCallback.VoidCallback ledgerFragmentsMcb, LedgerHandle lh, LedgerManager ledgerManager, long fragmentStartId, Map<BookieId, BookieId> oldBookie2NewBookie)
-
-
Method Details
-
processResult
- Specified by:
processResultin interfaceorg.apache.zookeeper.AsyncCallback.VoidCallback
-