@ThreadSafe public class UfsJournal extends Object implements Journal
Journal.Factory
Modifier and Type | Field and Description |
---|---|
protected static long |
FIRST_COMPLETED_LOG_NUMBER
The log number for the first completed log.
|
protected URI |
mLocation
The location where this journal is stored.
|
Constructor and Description |
---|
UfsJournal(URI location)
Creates a new instance of
UfsJournal . |
Modifier and Type | Method and Description |
---|---|
protected URI |
getCheckpoint() |
URI |
getCompletedLocation() |
protected URI |
getCompletedLog(long logNumber) |
URI |
getCurrentLog() |
protected JournalFormatter |
getJournalFormatter() |
URI |
getLocation() |
JournalReader |
getReader() |
boolean |
isFormatted() |
protected static final long FIRST_COMPLETED_LOG_NUMBER
protected final URI mLocation
public UfsJournal(URI location)
UfsJournal
.location
- the location for this journalpublic URI getCompletedLocation()
protected URI getCheckpoint()
public URI getCurrentLog()
protected URI getCompletedLog(long logNumber)
logNumber
- the log number to get the path forprotected JournalFormatter getJournalFormatter()
JournalFormatter
for this journalpublic URI getLocation()
getLocation
in interface Journal
public JournalReader getReader()
getReader
in interface Journal
JournalReader
for this journalpublic boolean isFormatted() throws IOException
isFormatted
in interface Journal
IOException
Copyright © 2023. All Rights Reserved.