Class IOTestProvider.IOTestWriter

java.lang.Object
org.apache.hadoop.hbase.regionserver.wal.AbstractProtobufLogWriter
org.apache.hadoop.hbase.regionserver.wal.ProtobufLogWriter
org.apache.hadoop.hbase.wal.IOTestProvider.IOTestWriter
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hadoop.hbase.wal.FSHLogProvider.Writer, org.apache.hadoop.hbase.wal.WALProvider.Writer, org.apache.hadoop.hbase.wal.WALProvider.WriterBase
Enclosing class:
IOTestProvider

private static class IOTestProvider.IOTestWriter extends org.apache.hadoop.hbase.regionserver.wal.ProtobufLogWriter
Presumes init will be called by a single thread prior to any access of other methods.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private boolean
     
    private boolean
     

    Fields inherited from class org.apache.hadoop.hbase.regionserver.wal.ProtobufLogWriter

    output

    Fields inherited from class org.apache.hadoop.hbase.regionserver.wal.AbstractProtobufLogWriter

    cellEncoder, compressionContext, compressor, conf, encryptor, length, trailer, trailerWarnSize, trailerWritten
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    append(org.apache.hadoop.hbase.wal.WAL.Entry entry)
     
    void
    init(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf, boolean overwritable, long blocksize, org.apache.hadoop.hbase.io.asyncfs.monitor.StreamSlowMonitor monitor)
     
    void
    sync(boolean forceSync)
     

    Methods inherited from class org.apache.hadoop.hbase.regionserver.wal.ProtobufLogWriter

    close, closeOutputIfNecessary, getOutputStreamForCellEncoder, getStream, getSyncedLength, initOutput, writeMagicAndWALHeader, writeWALTrailerAndMagic

    Methods inherited from class org.apache.hadoop.hbase.regionserver.wal.AbstractProtobufLogWriter

    getLength, writeWALTrailer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.hadoop.hbase.wal.WALProvider.WriterBase

    getLength
  • Field Details

  • Constructor Details

  • Method Details

    • init

      public void init(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf, boolean overwritable, long blocksize, org.apache.hadoop.hbase.io.asyncfs.monitor.StreamSlowMonitor monitor) throws IOException, org.apache.hadoop.hbase.util.CommonFSUtils.StreamLacksCapabilityException
      Specified by:
      init in interface org.apache.hadoop.hbase.wal.FSHLogProvider.Writer
      Overrides:
      init in class org.apache.hadoop.hbase.regionserver.wal.AbstractProtobufLogWriter
      Throws:
      IOException
      org.apache.hadoop.hbase.util.CommonFSUtils.StreamLacksCapabilityException
    • append

      public void append(org.apache.hadoop.hbase.wal.WAL.Entry entry) throws IOException
      Specified by:
      append in interface org.apache.hadoop.hbase.wal.WALProvider.Writer
      Overrides:
      append in class org.apache.hadoop.hbase.regionserver.wal.ProtobufLogWriter
      Throws:
      IOException
    • sync

      public void sync(boolean forceSync) throws IOException
      Specified by:
      sync in interface org.apache.hadoop.hbase.wal.WALProvider.Writer
      Overrides:
      sync in class org.apache.hadoop.hbase.regionserver.wal.ProtobufLogWriter
      Throws:
      IOException