public class TcpTransport extends AbstractTcpTransport
Modifier and Type | Class and Description |
---|---|
static class |
TcpTransport.Config |
static interface |
TcpTransport.Factory |
Modifier and Type | Field and Description |
---|---|
static String |
CK_USE_NULL_DELIMITER |
protected org.jboss.netty.buffer.ChannelBuffer[] |
delimiter |
protected int |
maxFrameLength |
bossExecutor, configuration, connectionCounter, workerExecutor
CK_BIND_ADDRESS, CK_PORT, CK_RECV_BUFFER_SIZE, localRegistry, throughputCounter
Modifier | Constructor and Description |
---|---|
protected |
TcpTransport(Configuration configuration,
Executor bossPool,
Executor workerPool,
ThroughputCounter throughputCounter,
ConnectionCounter connectionCounter,
LocalMetricRegistry localRegistry) |
|
TcpTransport(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 static final String CK_USE_NULL_DELIMITER
protected final org.jboss.netty.buffer.ChannelBuffer[] delimiter
protected final int maxFrameLength
public TcpTransport(Configuration configuration, @Named(value="bossPool") Executor bossPool, ThroughputCounter throughputCounter, ConnectionCounter connectionCounter, LocalMetricRegistry localRegistry)
protected TcpTransport(Configuration configuration, Executor bossPool, Executor workerPool, 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 NettyTransport
Copyright © 2012–2018 Graylog, Inc.. All rights reserved.