Class TestLogRollingNoCluster.HighLatencySyncWriter

java.lang.Object
org.apache.hadoop.hbase.regionserver.wal.AbstractProtobufLogWriter
org.apache.hadoop.hbase.regionserver.wal.ProtobufLogWriter
org.apache.hadoop.hbase.regionserver.wal.TestLogRollingNoCluster.HighLatencySyncWriter
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:
TestLogRollingNoCluster

public static class TestLogRollingNoCluster.HighLatencySyncWriter extends org.apache.hadoop.hbase.regionserver.wal.ProtobufLogWriter
ProtobufLogWriter that simulates higher latencies in sync() call
  • Field Summary

    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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    sync(boolean forceSync)
     

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

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

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

    getLength, init, setWALTrailer, 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.FSHLogProvider.Writer

    init

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

    getLength
  • Constructor Details

  • Method Details

    • 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