Search in sources :

Example 1 with NetflowV9CodecAggregator

use of org.graylog.plugins.netflow.codecs.NetflowV9CodecAggregator in project graylog2-server by Graylog2.

the class NetFlowUdpTransportTest method setUp.

@Before
public void setUp() {
    final NettyTransportConfiguration nettyTransportConfiguration = new NettyTransportConfiguration("nio", "jdk", 1);
    eventLoopGroupFactory = new EventLoopGroupFactory(nettyTransportConfiguration);
    eventLoopGroup = new NioEventLoopGroup(1);
    transport = new NetFlowUdpTransport(Configuration.EMPTY_CONFIGURATION, eventLoopGroupFactory, nettyTransportConfiguration, new ThroughputCounter(eventLoopGroup), new LocalMetricRegistry());
    transport.setMessageAggregator(new NetflowV9CodecAggregator());
}
Also used : ThroughputCounter(org.graylog2.plugin.inputs.util.ThroughputCounter) NetflowV9CodecAggregator(org.graylog.plugins.netflow.codecs.NetflowV9CodecAggregator) EventLoopGroupFactory(org.graylog2.inputs.transports.netty.EventLoopGroupFactory) NioEventLoopGroup(io.netty.channel.nio.NioEventLoopGroup) NettyTransportConfiguration(org.graylog2.inputs.transports.NettyTransportConfiguration) LocalMetricRegistry(org.graylog2.plugin.LocalMetricRegistry) Before(org.junit.Before)

Aggregations

NioEventLoopGroup (io.netty.channel.nio.NioEventLoopGroup)1 NetflowV9CodecAggregator (org.graylog.plugins.netflow.codecs.NetflowV9CodecAggregator)1 NettyTransportConfiguration (org.graylog2.inputs.transports.NettyTransportConfiguration)1 EventLoopGroupFactory (org.graylog2.inputs.transports.netty.EventLoopGroupFactory)1 LocalMetricRegistry (org.graylog2.plugin.LocalMetricRegistry)1 ThroughputCounter (org.graylog2.plugin.inputs.util.ThroughputCounter)1 Before (org.junit.Before)1