Class AppendLogFile

  • All Implemented Interfaces:
    LogFile

    public class AppendLogFile
    extends java.lang.Object
    implements LogFile
    • Constructor Detail

      • AppendLogFile

        public AppendLogFile​(StoreContext ctx,
                             java.io.RandomAccessFile file)
    • Method Detail

      • setInMemoryMode

        public void setInMemoryMode​(boolean inMemoryMode)
        Specified by:
        setInMemoryMode in interface LogFile
      • init

        public void init​(long maxSize)
        Specified by:
        init in interface LogFile
      • getFile

        public java.io.RandomAccessFile getFile()
        Specified by:
        getFile in interface LogFile
      • getPosition

        public long getPosition()
        Specified by:
        getPosition in interface LogFile
      • write

        public void write​(LogRecord logRecord)
                   throws java.io.IOException
        Specified by:
        write in interface LogFile
        Throws:
        java.io.IOException
      • write

        public void write​(LogRecord logRecord,
                          java.io.DataOutput copyHere)
                   throws java.io.IOException
        Specified by:
        write in interface LogFile
        Throws:
        java.io.IOException
      • flush

        public void flush​(boolean sync)
                   throws java.io.IOException
        Specified by:
        flush in interface LogFile
        Throws:
        java.io.IOException
      • reset

        public void reset​(boolean sync)
                   throws java.io.IOException
        Specified by:
        reset in interface LogFile
        Throws:
        java.io.IOException
      • reset

        public void reset​(boolean sync,
                          java.io.DataOutput copyHere)
                   throws java.io.IOException
        Specified by:
        reset in interface LogFile
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object