public abstract class AbstractTcpTransport extends NettyTransport
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractTcpTransport.Config |
Transport.Factory<T extends Transport>| Modifier and Type | Field and Description |
|---|---|
protected Executor |
bossExecutor |
protected Configuration |
configuration |
protected ConnectionCounter |
connectionCounter |
protected Executor |
workerExecutor |
CK_BIND_ADDRESS, CK_PORT, CK_RECV_BUFFER_SIZE, localRegistry, throughputCounter| Constructor and Description |
|---|
AbstractTcpTransport(Configuration configuration,
ThroughputCounter throughputCounter,
LocalMetricRegistry localRegistry,
Executor bossPool,
Executor workerPool,
ConnectionCounter connectionCounter) |
| Modifier and Type | Method and Description |
|---|---|
protected LinkedHashMap<String,Callable<? extends org.jboss.netty.channel.ChannelHandler>> |
getBaseChannelHandlers(MessageInput input)
Subclasses can override this to add additional ChannelHandlers to the pipeline to support additional features.
|
protected org.jboss.netty.bootstrap.Bootstrap |
getBootstrap()
Construct a
ServerBootstrap to use with this transport. |
getFinalChannelHandlers, getLocalAddress, getMetricSet, getRecvBufferSize, launch, setMessageAggregator, stopprotected final Executor bossExecutor
protected final Executor workerExecutor
protected final ConnectionCounter connectionCounter
protected final Configuration configuration
public AbstractTcpTransport(Configuration configuration, ThroughputCounter throughputCounter, LocalMetricRegistry localRegistry, Executor bossPool, Executor workerPool, ConnectionCounter connectionCounter)
protected org.jboss.netty.bootstrap.Bootstrap getBootstrap()
NettyTransportServerBootstrap to use with this transport.
Set all the options on it you need to have, but do not set a ChannelPipelineFactory, it will be replaced with the
augmented list of handlers returned by NettyTransport.getBaseChannelHandlers(org.graylog2.plugin.inputs.MessageInput)getBootstrap in class NettyTransportprotected LinkedHashMap<String,Callable<? extends org.jboss.netty.channel.ChannelHandler>> getBaseChannelHandlers(MessageInput input)
NettyTransportgetBaseChannelHandlers in class NettyTransportChannelPipelineFactoryCopyright © 2012-2016 Graylog, Inc.. All Rights Reserved.