Interface LogRecordType


public interface LogRecordType
Define record types used by Logger implementations.

NOTE: record types used by all sub-classes and packages within org.objectweb.howl should be defined here so it is easy to determine that new types are always unique and do not conflict with existing types.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final short
    recorded by Logger to signal a clean close on the log.
    static final short
    Log records generated by Logger.
    static final short
    Type indicating that end of log has been reached.
    static final short
    Type returned by get() methods to signal end of buffer.
    static final short
    Header records generated at start of every log file.
    static final short
    Log records containing mark data.
    static final short
    recorded by Logger to mark first block following a restart of the Logger.
    static final short
    Log records generated by user.
    static final short
    recorded by XALogger to mark records generated by XALogger#putCommit()
    static final short
    recorded by XALogger *after* a XACOMMIT record is moved to allow replay to remove the original XACOMMIT record from the activeTx table.
    static final short
    recorded by XALogger to mark records generated by XALogger#putDone()
  • Field Details

    • USER

      static final short USER
      Log records generated by user.
      See Also:
    • CTRL

      static final short CTRL
      Log records generated by Logger.

      must be ORed with another value to form a complete control record type.

      The first nibble contains only the CTRL flag to make it easy to see in file dumps. The remaining three nibbles contain bits that identify the specific type of control record.

      See Also:
    • FILE_HEADER

      static final short FILE_HEADER
      Header records generated at start of every log file.
      See Also:
    • MARKKEY

      static final short MARKKEY
      Log records containing mark data.

      Data portion of the record contains the current automark mode (true or false) and the active mark.

      See Also:
    • CLOSE

      static final short CLOSE
      recorded by Logger to signal a clean close on the log.
      See Also:
    • RESTART

      static final short RESTART
      recorded by Logger to mark first block following a restart of the Logger.
      See Also:
    • XACOMMIT

      static final short XACOMMIT
      recorded by XALogger to mark records generated by XALogger#putCommit()
      See Also:
    • XADONE

      static final short XADONE
      recorded by XALogger to mark records generated by XALogger#putDone()
      See Also:
    • XACOMMITMOVED

      static final short XACOMMITMOVED
      recorded by XALogger *after* a XACOMMIT record is moved to allow replay to remove the original XACOMMIT record from the activeTx table.
      See Also:
    • EOB

      static final short EOB
      Type returned by get() methods to signal end of buffer.

      This record type may or may not actually exist within a data buffer. A get() method should return this record type when the ByteBuffer.position() is at or beyond the used bytes for the buffer.

      See Also:
    • END_OF_LOG

      static final short END_OF_LOG
      Type indicating that end of log has been reached.

      signals ReplayListener that no more records will be delivered.

      See Also: