Class LedgerRecoveryOp

java.lang.Object
org.apache.bookkeeper.client.LedgerRecoveryOp
All Implemented Interfaces:
AsyncCallback.AddCallback, AsyncCallback.AddCallbackWithLatency, BookkeeperInternalCallbacks.ReadEntryListener

This class encapsulated the ledger recovery operation. It first does a read with entry-id of -1 (BookieProtocol.LAST_ADD_CONFIRMED) to all bookies. Then starting from the last confirmed entry (from hints in the ledger entries), it reads forward until it is not able to find a particular entry.