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​(java.io.File dir,
                          long logId)
                   throws java.io.IOException
        writes the given id to the "lastId" file in the given directory.
        Throws:
        java.io.IOException
      • stop

        void stop()
        Stop the allocator.