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 java.lang.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
Fields Modifier and Type Field Description (package private) long
fragmentStartId
(package private) org.apache.zookeeper.AsyncCallback.VoidCallback
ledgerFragmentsMcb
(package private) LedgerManager
ledgerManager
(package private) LedgerHandle
lh
(package private) java.util.Map<BookieId,BookieId>
oldBookie2NewBookie
-
Constructor Summary
Constructors Constructor Description SingleFragmentCallback(org.apache.zookeeper.AsyncCallback.VoidCallback ledgerFragmentsMcb, LedgerHandle lh, LedgerManager ledgerManager, long fragmentStartId, java.util.Map<BookieId,BookieId> oldBookie2NewBookie)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processResult(int rc, java.lang.String path, java.lang.Object ctx)
-
-
-
Field Detail
-
ledgerFragmentsMcb
final org.apache.zookeeper.AsyncCallback.VoidCallback ledgerFragmentsMcb
-
lh
final LedgerHandle lh
-
ledgerManager
final LedgerManager ledgerManager
-
fragmentStartId
final long fragmentStartId
-
-
Constructor Detail
-
SingleFragmentCallback
SingleFragmentCallback(org.apache.zookeeper.AsyncCallback.VoidCallback ledgerFragmentsMcb, LedgerHandle lh, LedgerManager ledgerManager, long fragmentStartId, java.util.Map<BookieId,BookieId> oldBookie2NewBookie)
-
-