Search in sources :

Example 16 with HashedWheelTimer

use of org.jboss.netty.util.HashedWheelTimer in project graylog2-server by Graylog2.

the class AbstractTcpTransportTest method setUp.

@Before
public void setUp() {
    throughputCounter = new ThroughputCounter(new HashedWheelTimer());
    localRegistry = new LocalMetricRegistry();
    bossPool = MoreExecutors.directExecutor();
    workerPool = MoreExecutors.directExecutor();
    connectionCounter = new ConnectionCounter();
}
Also used : ThroughputCounter(org.graylog2.plugin.inputs.util.ThroughputCounter) ConnectionCounter(org.graylog2.plugin.inputs.util.ConnectionCounter) HashedWheelTimer(org.jboss.netty.util.HashedWheelTimer) LocalMetricRegistry(org.graylog2.plugin.LocalMetricRegistry) Before(org.junit.Before)

Aggregations

HashedWheelTimer (org.jboss.netty.util.HashedWheelTimer)16 LocalMetricRegistry (org.graylog2.plugin.LocalMetricRegistry)3 NioClientSocketChannelFactory (org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory)3 ThreadFactoryBuilder (com.google.common.util.concurrent.ThreadFactoryBuilder)2 DefaultFuture (com.navercorp.pinpoint.rpc.DefaultFuture)2 Future (com.navercorp.pinpoint.rpc.Future)2 RequestPacket (com.navercorp.pinpoint.rpc.packet.RequestPacket)2 ThreadFactory (java.util.concurrent.ThreadFactory)2 ThroughputCounter (org.graylog2.plugin.inputs.util.ThroughputCounter)2 ClientBootstrap (org.jboss.netty.bootstrap.ClientBootstrap)2 Before (org.junit.Before)2 Test (org.junit.Test)2 TypeLiteral (com.google.inject.TypeLiteral)1 FactoryModuleBuilder (com.google.inject.assistedinject.FactoryModuleBuilder)1 TestAwaitTaskUtils (com.navercorp.pinpoint.rpc.TestAwaitTaskUtils)1 ClientConfig (com.twitter.distributedlog.client.ClientConfig)1 DefaultRegionResolver (com.twitter.distributedlog.client.resolver.DefaultRegionResolver)1 ClientStats (com.twitter.distributedlog.client.stats.ClientStats)1 ConnectException (java.net.ConnectException)1 InetSocketAddress (java.net.InetSocketAddress)1