public class UpdateLedgerOp
extends java.lang.Object
| Constructor and Description |
|---|
UpdateLedgerOp(BookKeeper bkc,
BookKeeperAdmin admin) |
| Modifier and Type | Method and 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.
|
public UpdateLedgerOp(BookKeeper bkc, BookKeeperAdmin admin)
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
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 updatesjava.io.IOException - if there is an error when updating bookie id in ledger
metadatajava.lang.InterruptedExceptionCopyright © 2011–2024 The Apache Software Foundation. All rights reserved.