public class AzureJournalFile extends java.lang.Object implements JournalFile
Constructor and Description |
---|
AzureJournalFile(com.microsoft.azure.storage.blob.CloudBlobDirectory directory,
java.lang.String journalNamePrefix) |
Modifier and Type | Method and Description |
---|---|
boolean |
exists()
Check if the journal already exists.
|
java.lang.String |
getName()
Return the name representing the journal file.
|
JournalFileReader |
openJournalReader()
Opens the journal file for reading.
|
JournalFileWriter |
openJournalWriter()
Opens the journal file for writing.
|
public AzureJournalFile(com.microsoft.azure.storage.blob.CloudBlobDirectory directory, java.lang.String journalNamePrefix)
public JournalFileReader openJournalReader() throws java.io.IOException
JournalFile
JournalFileWriter
won't be visible until a new
JournalFileReader
is opened.openJournalReader
in interface JournalFile
java.io.IOException
public JournalFileWriter openJournalWriter() throws java.io.IOException
JournalFile
openJournalWriter
in interface JournalFile
java.io.IOException
public java.lang.String getName()
JournalFile
getName
in interface JournalFile
public boolean exists()
JournalFile
exists
in interface JournalFile
true
if the journal has been already created by the
JournalFileWriter
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.