Class NGTransaction.LogFile

    • Field Detail

      • logidx

        int logidx
        Unique index of this log file
      • logCounter

        int logCounter
        Number of valid operation in this log file
      • maxUsedIdx

        static int maxUsedIdx
        Maximum index of existing log files
    • Constructor Detail

      • LogFile

        public LogFile​(File dir,
                       int logidx,
                       String mode)
                throws FileNotFoundException
        Creates a log file.
        Parameters:
        dir - The directory
        logidx - The log index
        mode - The mode
        Throws:
        FileNotFoundException - some other error occurs while opening or creating the file.