Class BookieLedgerIndexer
- java.lang.Object
-
- org.apache.bookkeeper.replication.BookieLedgerIndexer
-
public class BookieLedgerIndexer extends java.lang.Object
Preparing bookie vs its corresponding ledgers. This will always look up the ledgermanager for ledger metadata and will generate indexes.
-
-
Constructor Summary
Constructors Constructor Description BookieLedgerIndexer(LedgerManager ledgerManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.util.Set<java.lang.Long>>
getBookieToLedgerIndex()
Generating bookie vs its ledgers map by reading all the ledgers in each bookie and parsing its metadata.
-
-
-
Constructor Detail
-
BookieLedgerIndexer
public BookieLedgerIndexer(LedgerManager ledgerManager)
-
-
Method Detail
-
getBookieToLedgerIndex
public java.util.Map<java.lang.String,java.util.Set<java.lang.Long>> getBookieToLedgerIndex() throws ReplicationException.BKAuditException
Generating bookie vs its ledgers map by reading all the ledgers in each bookie and parsing its metadata.- Returns:
- bookie2ledgersMap map of bookie vs ledgers
- Throws:
ReplicationException.BKAuditException
- exception while getting bookie-ledgers
-
-