Class AbstractFSWAL.WALProps

java.lang.Object
org.apache.hadoop.hbase.regionserver.wal.AbstractFSWAL.WALProps
Enclosing class:
AbstractFSWAL<W extends WALProvider.WriterBase>

private static final class AbstractFSWAL.WALProps extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private boolean
    If we do asynchronous close in subclasses, it is possible that when adding WALProps to the rolled map, the file is not closed yet, so in cleanOldLogs we should not archive this file, for safety.
    private final Map<byte[],Long>
    Map the encoded region name to the highest sequence id.
    private final long
    The log file size.
    private final long
    The nanoTime of the log rolling, used to determine the time interval that has passed since.
  • Constructor Summary

    Constructors
    Constructor
    Description
    WALProps(Map<byte[],Long> encodedName2HighestSequenceId, long logSize)
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • encodedName2HighestSequenceId

      private final Map<byte[],Long> encodedName2HighestSequenceId
      Map the encoded region name to the highest sequence id.

      Contains all the regions it has an entry for.

    • logSize

      private final long logSize
      The log file size. Notice that the size may not be accurate if we do asynchronous close in subclasses.
    • rollTimeNs

      private final long rollTimeNs
      The nanoTime of the log rolling, used to determine the time interval that has passed since.
    • closed

      private volatile boolean closed
      If we do asynchronous close in subclasses, it is possible that when adding WALProps to the rolled map, the file is not closed yet, so in cleanOldLogs we should not archive this file, for safety.
  • Constructor Details

    • WALProps

      WALProps(Map<byte[],Long> encodedName2HighestSequenceId, long logSize)