public class SyslogTcpTransport extends TcpTransport
Modifier and Type | Class and Description |
---|---|
static class |
SyslogTcpTransport.Config |
static interface |
SyslogTcpTransport.Factory |
CK_USE_NULL_DELIMITER, delimiter, maxFrameLength
bossExecutor, configuration, connectionCounter, workerExecutor
CK_BIND_ADDRESS, CK_PORT, CK_RECV_BUFFER_SIZE, localRegistry, throughputCounter
Constructor and Description |
---|
SyslogTcpTransport(Configuration configuration,
Executor bossPool,
ThroughputCounter throughputCounter,
ConnectionCounter connectionCounter,
LocalMetricRegistry localRegistry) |
Modifier and Type | Method and Description |
---|---|
protected LinkedHashMap<String,Callable<? extends org.jboss.netty.channel.ChannelHandler>> |
getFinalChannelHandlers(MessageInput input)
Subclasses can override this to modify the
channel handlers at the end of the pipeline. |
getBaseChannelHandlers, getBootstrap
getLocalAddress, getMetricSet, getRecvBufferSize, launch, setMessageAggregator, stop
public SyslogTcpTransport(Configuration configuration, @Named(value="bossPool") Executor bossPool, ThroughputCounter throughputCounter, ConnectionCounter connectionCounter, LocalMetricRegistry localRegistry)
protected LinkedHashMap<String,Callable<? extends org.jboss.netty.channel.ChannelHandler>> getFinalChannelHandlers(MessageInput input)
NettyTransport
channel handlers
at the end of the pipeline.
The default handlers in this group are the aggregation handler (e.g. for chunked GELF via UDP), which can be missing, and the NettyTransport.RawMessageHandler
.
Usually this should not be necessary, only modify them if you have a codec that cannot create a RawMessage
for
incoming messages at the end of the pipeline.
One valid use case would be to insert debug handlers in the middle of the list, though.getFinalChannelHandlers
in class TcpTransport
Copyright © 2012–2018 Graylog, Inc.. All rights reserved.