Class TestAsyncLogRolling.SlowSyncLogWriter

java.lang.Object
org.apache.hadoop.hbase.regionserver.wal.AbstractProtobufLogWriter
org.apache.hadoop.hbase.regionserver.wal.AsyncProtobufLogWriter
org.apache.hadoop.hbase.regionserver.wal.TestAsyncLogRolling.SlowSyncLogWriter
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hadoop.hbase.wal.AsyncFSWALProvider.AsyncWriter, org.apache.hadoop.hbase.wal.WALProvider.AsyncWriter, org.apache.hadoop.hbase.wal.WALProvider.WriterBase
Enclosing class:
TestAsyncLogRolling

public static class TestAsyncLogRolling.SlowSyncLogWriter extends org.apache.hadoop.hbase.regionserver.wal.AsyncProtobufLogWriter
  • Field Summary

    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
    SlowSyncLogWriter(org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup eventLoopGroup, Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel> channelClass)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    sync(boolean forceSync)
     

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

    append, close, closeOutputIfNecessary, getOutput, getOutputStreamForCellEncoder, 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.AsyncFSWALProvider.AsyncWriter

    init

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

    getLength
  • Constructor Details

    • SlowSyncLogWriter

      public SlowSyncLogWriter(org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup eventLoopGroup, Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel> channelClass)
  • Method Details

    • sync

      public CompletableFuture<Long> sync(boolean forceSync)
      Specified by:
      sync in interface org.apache.hadoop.hbase.wal.WALProvider.AsyncWriter
      Overrides:
      sync in class org.apache.hadoop.hbase.regionserver.wal.AsyncProtobufLogWriter