Class LogFile


  • public class LogFile
    extends Object
    Represents a redo or archive log in Oracle.
    Author:
    Chris Cranford
    • 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
    • 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 name
        firstScn - the first system change number in the log
        nextScn - the first system change number in the following log
        sequence - the unique log sequence number
        type - 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 name
        firstScn - the first system change number in the log
        nextScn - the first system change number in the following log
        sequence - the unique log sequence number
        type - the type of archive log
        current - 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object