Search in sources :

Example 6 with NioEventLoopGroup

use of org.apache.hbase.thirdparty.io.netty.channel.nio.NioEventLoopGroup in project hbase by apache.

the class TestAsyncWALReplay method setUpBeforeClass.

@BeforeClass
public static void setUpBeforeClass() throws Exception {
    GROUP = new NioEventLoopGroup(1, new ThreadFactoryBuilder().setNameFormat("TestAsyncWALReplay-pool-%d").setDaemon(true).setUncaughtExceptionHandler(Threads.LOGGING_EXCEPTION_HANDLER).build());
    CHANNEL_CLASS = NioSocketChannel.class;
    Configuration conf = AbstractTestWALReplay.TEST_UTIL.getConfiguration();
    conf.set(WALFactory.WAL_PROVIDER, "asyncfs");
    AbstractTestWALReplay.setUpBeforeClass();
}
Also used : Configuration(org.apache.hadoop.conf.Configuration) ThreadFactoryBuilder(org.apache.hbase.thirdparty.com.google.common.util.concurrent.ThreadFactoryBuilder) NioEventLoopGroup(org.apache.hbase.thirdparty.io.netty.channel.nio.NioEventLoopGroup) BeforeClass(org.junit.BeforeClass)

Example 7 with NioEventLoopGroup

use of org.apache.hbase.thirdparty.io.netty.channel.nio.NioEventLoopGroup in project hbase by apache.

the class TestAsyncProtobufLog method setUpBeforeClass.

@BeforeClass
public static void setUpBeforeClass() throws Exception {
    EVENT_LOOP_GROUP = new NioEventLoopGroup();
    CHANNEL_CLASS = NioSocketChannel.class;
    AbstractTestProtobufLog.setUpBeforeClass();
}
Also used : NioEventLoopGroup(org.apache.hbase.thirdparty.io.netty.channel.nio.NioEventLoopGroup) BeforeClass(org.junit.BeforeClass)

Example 8 with NioEventLoopGroup

use of org.apache.hbase.thirdparty.io.netty.channel.nio.NioEventLoopGroup in project hbase by apache.

the class TestCombinedAsyncWriter method setUpBeforeClass.

@BeforeClass
public static void setUpBeforeClass() throws Exception {
    EVENT_LOOP_GROUP = new NioEventLoopGroup();
    CHANNEL_CLASS = NioSocketChannel.class;
    UTIL.startMiniDFSCluster(3);
    UTIL.getTestFileSystem().mkdirs(UTIL.getDataTestDirOnTestFS());
    WALS = new WALFactory(UTIL.getConfiguration(), TestCombinedAsyncWriter.class.getSimpleName());
}
Also used : WALFactory(org.apache.hadoop.hbase.wal.WALFactory) NioEventLoopGroup(org.apache.hbase.thirdparty.io.netty.channel.nio.NioEventLoopGroup) BeforeClass(org.junit.BeforeClass)

Aggregations

NioEventLoopGroup (org.apache.hbase.thirdparty.io.netty.channel.nio.NioEventLoopGroup)8 BeforeClass (org.junit.BeforeClass)7 ThreadFactoryBuilder (org.apache.hbase.thirdparty.com.google.common.util.concurrent.ThreadFactoryBuilder)2 Configuration (org.apache.hadoop.conf.Configuration)1 Path (org.apache.hadoop.fs.Path)1 WALFactory (org.apache.hadoop.hbase.wal.WALFactory)1 Channel (org.apache.hbase.thirdparty.io.netty.channel.Channel)1 EventLoop (org.apache.hbase.thirdparty.io.netty.channel.EventLoop)1 EventLoopGroup (org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup)1 NioSocketChannel (org.apache.hbase.thirdparty.io.netty.channel.socket.nio.NioSocketChannel)1 DefaultThreadFactory (org.apache.hbase.thirdparty.io.netty.util.concurrent.DefaultThreadFactory)1