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

    Fields
    Modifier and Type
    Field
    Description
    (package private) final long
     
    (package private) final org.apache.zookeeper.AsyncCallback.VoidCallback
     
    (package private) final LedgerManager
     
    (package private) final LedgerHandle
     
    (package private) final Map<BookieId,BookieId>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SingleFragmentCallback(org.apache.zookeeper.AsyncCallback.VoidCallback ledgerFragmentsMcb, LedgerHandle lh, LedgerManager ledgerManager, long fragmentStartId, Map<BookieId,BookieId> oldBookie2NewBookie)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    processResult(int rc, String path, Object ctx)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ledgerFragmentsMcb

      final org.apache.zookeeper.AsyncCallback.VoidCallback ledgerFragmentsMcb
    • lh

      final LedgerHandle lh
    • ledgerManager

      final LedgerManager ledgerManager
    • fragmentStartId

      final long fragmentStartId
    • oldBookie2NewBookie

      final Map<BookieId,BookieId> oldBookie2NewBookie
  • Constructor Details

    • SingleFragmentCallback

      SingleFragmentCallback(org.apache.zookeeper.AsyncCallback.VoidCallback ledgerFragmentsMcb, LedgerHandle lh, LedgerManager ledgerManager, long fragmentStartId, Map<BookieId,BookieId> oldBookie2NewBookie)
  • Method Details

    • processResult

      public void processResult(int rc, String path, Object ctx)
      Specified by:
      processResult in interface org.apache.zookeeper.AsyncCallback.VoidCallback