Package org.apache.bookkeeper.client
Class UpdateLedgerOp
java.lang.Object
org.apache.bookkeeper.client.UpdateLedgerOp
Encapsulates updating the ledger metadata operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidupdateBookieIdInLedgers(BookieId oldBookieId, BookieId newBookieId, int rate, int maxOutstandingReads, int limit, BookieShell.UpdateLedgerNotifier progressable) Update the bookie id present in the ledger metadata.
-
Constructor Details
-
UpdateLedgerOp
-
-
Method Details
-
updateBookieIdInLedgers
public void updateBookieIdInLedgers(BookieId oldBookieId, BookieId newBookieId, int rate, int maxOutstandingReads, int limit, BookieShell.UpdateLedgerNotifier progressable) throws IOException, InterruptedException Update the bookie id present in the ledger metadata.- Parameters:
oldBookieId- current bookie idnewBookieId- new bookie idrate- number of ledgers updating per second (default 5 per sec)limit- maximum number of ledgers to update (default: no limit). Stop update if reaching limitprogressable- report progress of the ledger updates- Throws:
IOException- if there is an error when updating bookie id in ledger metadataInterruptedException
-