Class LedgerMetadataUtils

java.lang.Object
org.apache.bookkeeper.client.LedgerMetadataUtils

public class LedgerMetadataUtils extends Object
Utilities for working with ledger metadata.
  • Field Details

    • LOG

      static final org.slf4j.Logger LOG
  • Constructor Details

    • LedgerMetadataUtils

      public LedgerMetadataUtils()
  • Method Details

    • getCurrentEnsemble

      static List<BookieId> getCurrentEnsemble(LedgerMetadata metadata)
    • getNextEnsembleChange

      static long getNextEnsembleChange(LedgerMetadata metadata, long entryId)
      the entry id greater than the given entry-id at which the next ensemble change takes place.
      Parameters:
      entryId -
      Returns:
      the entry id of the next ensemble change (-1 if no further ensemble changes)
    • getBookiesInThisLedger

      static Set<BookieId> getBookiesInThisLedger(LedgerMetadata metadata)
    • getLastEnsembleValue

      static List<BookieId> getLastEnsembleValue(LedgerMetadata metadata)
    • getLastEnsembleKey

      static Long getLastEnsembleKey(LedgerMetadata metadata)
    • shouldStoreCtime

      public static boolean shouldStoreCtime(LedgerMetadata metadata)