Class AzureJournalFile
java.lang.Object
org.apache.jackrabbit.oak.segment.azure.AzureJournalFile
- All Implemented Interfaces:
JournalFile
-
Constructor Summary
ConstructorsConstructorDescriptionAzureJournalFile
(com.azure.storage.blob.BlobContainerClient readBlobContainerClient, com.azure.storage.blob.BlobContainerClient writeBlobContainerClient, String journalNamePrefix, WriteAccessController writeAccessController) -
Method Summary
-
Constructor Details
-
AzureJournalFile
public AzureJournalFile(com.azure.storage.blob.BlobContainerClient readBlobContainerClient, com.azure.storage.blob.BlobContainerClient writeBlobContainerClient, String journalNamePrefix, WriteAccessController writeAccessController)
-
-
Method Details
-
openJournalReader
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 theJournalFileWriter
won't be visible until a newJournalFileReader
is opened.- Specified by:
openJournalReader
in interfaceJournalFile
- Returns:
- the reader representing the current state of the journal
- Throws:
IOException
-
openJournalWriter
Description copied from interface:JournalFile
Opens the journal file for writing.- Specified by:
openJournalWriter
in interfaceJournalFile
- Returns:
- Throws:
IOException
-
getName
Description copied from interface:JournalFile
Return the name representing the journal file.- Specified by:
getName
in interfaceJournalFile
- 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 interfaceJournalFile
- Returns:
true
if the journal has been already created by theJournalFileWriter
-