public class UpdateLedgerOp extends Object
Constructor and Description |
---|
UpdateLedgerOp(BookKeeper bkc,
BookKeeperAdmin admin) |
Modifier and Type | Method and Description |
---|---|
void |
updateBookieIdInLedgers(org.apache.bookkeeper.net.BookieSocketAddress oldBookieId,
org.apache.bookkeeper.net.BookieSocketAddress newBookieId,
int rate,
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.BookieSocketAddress oldBookieId, org.apache.bookkeeper.net.BookieSocketAddress newBookieId, int rate, int limit, org.apache.bookkeeper.bookie.BookieShell.UpdateLedgerNotifier progressable) throws BKException, IOException
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 updatesIOException
- if there is an error when updating bookie id in ledger
metadataInterruptedException
- interrupted exception when update ledger metaBKException
Copyright © 2011-2016 The Apache Software Foundation. All Rights Reserved.