Class UpdateLedgerOp


  • public class UpdateLedgerOp
    extends java.lang.Object
    Encapsulates updating the ledger metadata operation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void updateBookieIdInLedgers​(org.apache.bookkeeper.net.BookieId oldBookieId, org.apache.bookkeeper.net.BookieId newBookieId, int rate, int maxOutstandingReads, int limit, org.apache.bookkeeper.bookie.BookieShell.UpdateLedgerNotifier progressable)
      Update the bookie id present in the ledger metadata.
      • Methods inherited from class java.lang.Object

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

      • updateBookieIdInLedgers

        public void updateBookieIdInLedgers​(org.apache.bookkeeper.net.BookieId oldBookieId,
                                            org.apache.bookkeeper.net.BookieId newBookieId,
                                            int rate,
                                            int maxOutstandingReads,
                                            int limit,
                                            org.apache.bookkeeper.bookie.BookieShell.UpdateLedgerNotifier progressable)
                                     throws java.io.IOException,
                                            java.lang.InterruptedException
        Update the bookie id present in the ledger metadata.
        Parameters:
        oldBookieId - current bookie id
        newBookieId - new bookie id
        rate - number of ledgers updating per second (default 5 per sec)
        limit - maximum number of ledgers to update (default: no limit). Stop update if reaching limit
        progressable - report progress of the ledger updates
        Throws:
        java.io.IOException - if there is an error when updating bookie id in ledger metadata
        java.lang.InterruptedException