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()
      • 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.