Class AzureGCJournalFile

    • Constructor Summary

      Constructors 
      Constructor Description
      AzureGCJournalFile​(com.microsoft.azure.storage.blob.CloudAppendBlob gcJournal)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> readLines()
      Return the list of all written records in the same order as they were written.
      void truncate()
      Removes the content of the gc.log
      void writeLine​(java.lang.String line)
      Write the new line to the GC journal file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AzureGCJournalFile

        public AzureGCJournalFile​(com.microsoft.azure.storage.blob.CloudAppendBlob gcJournal)
    • Method Detail

      • writeLine

        public void writeLine​(java.lang.String line)
                       throws java.io.IOException
        Description copied from interface: GCJournalFile
        Write the new line to the GC journal file.
        Specified by:
        writeLine in interface GCJournalFile
        Parameters:
        line - the line to write. It should contain neither special characters nor the newline \n.
        Throws:
        java.io.IOException
      • readLines

        public java.util.List<java.lang.String> readLines()
                                                   throws java.io.IOException
        Description copied from interface: GCJournalFile
        Return the list of all written records in the same order as they were written.
        Specified by:
        readLines in interface GCJournalFile
        Returns:
        the list of all written lines
        Throws:
        java.io.IOException
      • truncate

        public void truncate()
                      throws java.io.IOException
        Description copied from interface: GCJournalFile
        Removes the content of the gc.log
        Specified by:
        truncate in interface GCJournalFile
        Throws:
        java.io.IOException