public class LogFile extends Object
| Modifier and Type | Field and Description |
|---|---|
private boolean |
current |
private String |
fileName |
private Scn |
firstScn |
private Scn |
nextScn |
| Constructor and Description |
|---|
LogFile(String fileName,
Scn firstScn,
Scn nextScn)
Create a log file that represents an archived log record.
|
LogFile(String fileName,
Scn firstScn,
Scn nextScn,
boolean current)
Creates a log file that represents an online redo log record.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getFileName() |
Scn |
getFirstScn() |
Scn |
getNextScn() |
int |
hashCode() |
boolean |
isCurrent()
Returns whether this log file instance is considered the current online redo log record.
|
boolean |
isSameRange(LogFile other)
Returns whether the specified
other log file has the same SCN range as this instance. |
private final String fileName
private final Scn firstScn
private final Scn nextScn
private final boolean current
public LogFile(String fileName, Scn firstScn, Scn nextScn)
fileName - the file namefirstScn - the first system change number in the lognextScn - the first system change number in the following logpublic LogFile(String fileName, Scn firstScn, Scn nextScn, boolean current)
fileName - the file namefirstScn - the first system change number in the lognextScn - the first system change number in the following logcurrent - whether the log file is the current onepublic String getFileName()
public Scn getFirstScn()
public Scn getNextScn()
public boolean isCurrent()
public boolean isSameRange(LogFile other)
other log file has the same SCN range as this instance.other - the other log file instanceCopyright © 2021 JBoss by Red Hat. All rights reserved.