Class EntryLoggerAllocator

  • class EntryLoggerAllocator
    extends java.lang.Object
    An allocator pre-allocates entry log files.
    • Field Detail

      • allocatorExecutor

        java.util.concurrent.ExecutorService allocatorExecutor
      • logfileHeader

        final io.netty.buffer.ByteBuf logfileHeader
    • Method Detail

      • getPreallocatedLogId

        long getPreallocatedLogId()
      • isSealed

        public boolean isSealed​(long logId)
      • setWritingLogId

        void setWritingLogId​(long logId)
      • setWritingCompactingLogId

        void setWritingCompactingLogId​(long logId)
      • clearCompactingLogId

        void clearCompactingLogId()
      • setLastLogId

        void setLastLogId​( dir,
                          long logId)
        writes the given id to the "lastId" file in the given directory.
      • stop

        void stop()
        Stop the allocator.