Class NTransaction.LogFile

    • Field Detail

      • current

        int current
        Current file pointer in log
      • commitCount

        int commitCount
        Number of commit operation since starting up.
      • garbageCount

        int garbageCount
        Number of garbage operation since starting up.
      • garbageTime

        long garbageTime
        Cumulated time of garbage operations since starting up.
      • lastGarbageTime

        long lastGarbageTime
        Date of last garbage.
      • garbageTimeOut

        long garbageTimeOut
        Maximum delay between 2 garbages.
      • emptyUTFString

        private static final byte[] emptyUTFString
      • logMemorySize

        int logMemorySize
    • Method Detail

      • getLogFileSize

        int getLogFileSize()
        Returns the size of disk log in bytes.
        Returns:
        The size of disk log in bytes.
      • writeUTF

        void writeUTF​(String str)
      • writeInt

        void writeInt​(int v)
      • garbage

        private final void garbage()
                            throws IOException
        Reports all logged operations on disk.
        Throws:
        IOException - an error occurs.
      • stop

        void stop()