Package org.apache.bookkeeper.client
Class LedgerMetadataUtils
java.lang.Object
org.apache.bookkeeper.client.LedgerMetadataUtils
Utilities for working with ledger metadata.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBookiesInThisLedger(LedgerMetadata metadata) getCurrentEnsemble(LedgerMetadata metadata) (package private) static LonggetLastEnsembleKey(LedgerMetadata metadata) getLastEnsembleValue(LedgerMetadata metadata) (package private) static longgetNextEnsembleChange(LedgerMetadata metadata, long entryId) the entry id greater than the given entry-id at which the next ensemble change takes place.static booleanshouldStoreCtime(LedgerMetadata metadata)
-
Field Details
-
LOG
static final org.slf4j.Logger LOG
-
-
Constructor Details
-
LedgerMetadataUtils
public LedgerMetadataUtils()
-
-
Method Details
-
getCurrentEnsemble
-
getNextEnsembleChange
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
-
getLastEnsembleValue
-
getLastEnsembleKey
-
shouldStoreCtime
-