Class 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 propogate 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
    • 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)  
      • Methods inherited from class java.lang.Object

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

      • ledgerFragmentsMcb

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

        final long fragmentStartId
      • oldBookie2NewBookie

        final java.util.Map<BookieId,​BookieId> oldBookie2NewBookie
    • Constructor Detail

      • SingleFragmentCallback

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

      • processResult

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