Package org.apache.bookkeeper.bookie
Class DefaultEntryLogger.RecentEntryLogsStatus
- java.lang.Object
-
- org.apache.bookkeeper.bookie.DefaultEntryLogger.RecentEntryLogsStatus
-
- Enclosing class:
- DefaultEntryLogger
static class DefaultEntryLogger.RecentEntryLogsStatus extends java.lang.ObjectDatastructure which maintains the status of logchannels. When a logChannel is created entry of < entryLogId, false > will be made to this sortedmap and when logChannel is rotated and flushed then the entry is updated to < entryLogId, true > and all the lowest entries with < entryLogId, true > status will be removed from the sortedmap. So that way we could get least unflushed LogId.
-
-
Constructor Summary
Constructors Constructor Description RecentEntryLogsStatus(long leastUnflushedLogId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidcreatedEntryLog(java.lang.Long entryLogId)(package private) voidflushRotatedEntryLog(java.lang.Long entryLogId)(package private) longgetLeastUnflushedLogId()(package private) booleanisFlushedLogId(long entryLogId)
-