Class LogFile
- java.lang.Object
-
- io.debezium.connector.oracle.logminer.LogFile
-
public class LogFile extends Object
Represents a redo or archive log in Oracle.- Author:
- Chris Cranford
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLogFile.Type
-
Constructor Summary
Constructors Constructor Description LogFile(String fileName, Scn firstScn, Scn nextScn, Long sequence, LogFile.Type type)Create a log file that represents an archived log record.LogFile(String fileName, Scn firstScn, Scn nextScn, Long sequence, LogFile.Type type, boolean current)Creates a log file that represents an online redo log record.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetFileName()ScngetFirstScn()ScngetNextScn()LonggetSequence()LogFile.TypegetType()inthashCode()booleanisCurrent()Returns whether this log file instance is considered the current online redo log record.
-
-
-
Field Detail
-
fileName
private final String fileName
-
firstScn
private final Scn firstScn
-
nextScn
private final Scn nextScn
-
sequence
private final Long sequence
-
current
private final boolean current
-
type
private final LogFile.Type type
-
-
Constructor Detail
-
LogFile
public LogFile(String fileName, Scn firstScn, Scn nextScn, Long sequence, LogFile.Type type)
Create a log file that represents an archived log record.- Parameters:
fileName- the file namefirstScn- the first system change number in the lognextScn- the first system change number in the following logsequence- the unique log sequence numbertype- the log type
-
LogFile
public LogFile(String fileName, Scn firstScn, Scn nextScn, Long sequence, LogFile.Type type, boolean current)
Creates a log file that represents an online redo log record.- Parameters:
fileName- the file namefirstScn- the first system change number in the lognextScn- the first system change number in the following logsequence- the unique log sequence numbertype- the type of archive logcurrent- whether the log file is the current one
-
-
Method Detail
-
getFileName
public String getFileName()
-
getFirstScn
public Scn getFirstScn()
-
getNextScn
public Scn getNextScn()
-
getSequence
public Long getSequence()
-
isCurrent
public boolean isCurrent()
Returns whether this log file instance is considered the current online redo log record.
-
getType
public LogFile.Type getType()
-
-