Class AzureJournalFile

  • All Implemented Interfaces:
    JournalFile

    public class AzureJournalFile
    extends java.lang.Object
    implements JournalFile
    • Constructor Detail

      • AzureJournalFile

        public AzureJournalFile​(com.microsoft.azure.storage.blob.CloudBlobDirectory directory,
                                java.lang.String journalNamePrefix,
                                WriteAccessController writeAccessController)
    • Method Detail

      • openJournalReader

        public JournalFileReader openJournalReader()
                                            throws java.io.IOException
        Description copied from interface: JournalFile
        Opens the journal file for reading. The returned object will represent the current state of the journal. Subsequent writes made by the JournalFileWriter won't be visible until a new JournalFileReader is opened.
        Specified by:
        openJournalReader in interface JournalFile
        Returns:
        the reader representing the current state of the journal
        Throws:
        java.io.IOException
      • getName

        public java.lang.String getName()
        Description copied from interface: JournalFile
        Return the name representing the journal file.
        Specified by:
        getName in interface JournalFile
        Returns:
        name (eg. file name) representing the journal
      • exists

        public boolean exists()
        Description copied from interface: JournalFile
        Check if the journal already exists.
        Specified by:
        exists in interface JournalFile
        Returns:
        true if the journal has been already created by the JournalFileWriter