Class 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.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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