@Private
public static class FileJournalManager.EditLogFile
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
java.io.File |
getFile() |
|
long |
getFirstTxId() |
|
long |
getLastTxId() |
|
boolean |
isInProgress() |
|
void |
moveAsideEmptyFile() |
|
void |
moveAsideStaleInprogressFile() |
|
void |
scanLog(long maxTxIdToScan,
boolean verifyVersion) |
Find out where the edit log ends.
|
java.lang.String |
toString() |
public long getFirstTxId()
public long getLastTxId()
public void scanLog(long maxTxIdToScan,
boolean verifyVersion)
throws java.io.IOException
maxTxIdToScan - Maximum Tx ID to try to scan.
The scan returns after reading this or a higher ID.
The file portion beyond this ID is potentially being
updated.verifyVersion - Whether the scan should verify the layout versionjava.io.IOExceptionpublic boolean isInProgress()
public java.io.File getFile()
public void moveAsideEmptyFile()
throws java.io.IOException
java.io.IOExceptionpublic void moveAsideStaleInprogressFile()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.