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:JournalFileOpens the journal file for reading. The returned object will represent the current state of the journal. Subsequent writes made by theJournalFileWriterwon't be visible until a newJournalFileReaderis opened.- Specified by:
openJournalReaderin interfaceJournalFile- Returns:
- the reader representing the current state of the journal
- Throws:
IOException
-
openJournalWriter
Description copied from interface:JournalFileOpens the journal file for writing.- Specified by:
openJournalWriterin interfaceJournalFile- Returns:
- Throws:
IOException
-
getName
Description copied from interface:JournalFileReturn the name representing the journal file.- Specified by:
getNamein interfaceJournalFile- Returns:
- name (eg. file name) representing the journal
-
exists
public boolean exists()Description copied from interface:JournalFileCheck if the journal already exists.- Specified by:
existsin interfaceJournalFile- Returns:
trueif the journal has been already created by theJournalFileWriter
-