Class NetFlowUdpTransport
java.lang.Object
org.graylog2.plugin.inputs.transports.NettyTransport
org.graylog2.inputs.transports.UdpTransport
org.graylog.plugins.netflow.transport.NetFlowUdpTransport
- All Implemented Interfaces:
Transport
This UDP transport is largely identical to its superclass, but replaces the codec aggregator and its handler with custom
implementations that are able to pass the remote address.
Without the remote address the NetFlow V9 code cannot distinguish between flows from different exporters and thus might
handle template flows incorrectly should they differ between exporters.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static interface
-
Field Summary
Fields inherited from class org.graylog2.plugin.inputs.transports.NettyTransport
CK_BIND_ADDRESS, CK_NUMBER_WORKER_THREADS, CK_PORT, CK_RECV_BUFFER_SIZE, eventLoopGroupFactory, localRegistry, socketAddress, throughputCounter, workerThreads
-
Constructor Summary
ConstructorDescriptionNetFlowUdpTransport
(Configuration configuration, EventLoopGroupFactory eventLoopGroupFactory, NettyTransportConfiguration nettyTransportConfiguration, ThroughputCounter throughputCounter, LocalMetricRegistry localRegistry) -
Method Summary
Modifier and TypeMethodDescriptionprotected LinkedHashMap<String,
Callable<? extends io.netty.channel.ChannelHandler>> getChannelHandlers
(MessageInput input) Subclasses can override this to add additionalchannel handlers
to the NettyChannelPipeline
to support additional features.Methods inherited from class org.graylog2.inputs.transports.UdpTransport
getChildChannelHandlers, getLocalAddress, launch, stop
Methods inherited from class org.graylog2.plugin.inputs.transports.NettyTransport
getAggregator, getChannelInitializer, getCustomChildChannelHandlers, getMetricSet, getRecvBufferSize, setMessageAggregator
-
Constructor Details
-
NetFlowUdpTransport
@Inject public NetFlowUdpTransport(Configuration configuration, EventLoopGroupFactory eventLoopGroupFactory, NettyTransportConfiguration nettyTransportConfiguration, ThroughputCounter throughputCounter, LocalMetricRegistry localRegistry)
-
-
Method Details
-
getChannelHandlers
protected LinkedHashMap<String,Callable<? extends io.netty.channel.ChannelHandler>> getChannelHandlers(MessageInput input) Description copied from class:NettyTransport
Subclasses can override this to add additionalchannel handlers
to the NettyChannelPipeline
to support additional features. Some common use cases are to add connection counters or traffic shapers.- Overrides:
getChannelHandlers
in classUdpTransport
- Parameters:
input
- TheMessageInput
for which these channel handlers are being added- Returns:
- list of initial
channel handlers
to add to the Nettychannel pipeline
-