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 io.netty.channel.EventLoopGroup |
childEventLoopGroup |
protected Configuration |
configuration |
protected io.netty.channel.EventLoopGroup |
parentEventLoopGroup |
CK_BIND_ADDRESS, CK_NUMBER_WORKER_THREADS, CK_PORT, CK_RECV_BUFFER_SIZE, eventLoopGroupFactory, localRegistry, socketAddress, throughputCounter, workerThreads| Constructor and Description |
|---|
AbstractTcpTransport(Configuration configuration,
ThroughputCounter throughputCounter,
LocalMetricRegistry localRegistry,
io.netty.channel.EventLoopGroup parentEventLoopGroup,
EventLoopGroupFactory eventLoopGroupFactory,
NettyTransportConfiguration nettyTransportConfiguration,
Configuration graylogConfiguration)
Deprecated.
|
AbstractTcpTransport(Configuration configuration,
ThroughputCounter throughputCounter,
LocalMetricRegistry localRegistry,
io.netty.channel.EventLoopGroup parentEventLoopGroup,
EventLoopGroupFactory eventLoopGroupFactory,
NettyTransportConfiguration nettyTransportConfiguration,
TLSProtocolsConfiguration tlsConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
protected io.netty.bootstrap.ServerBootstrap |
getBootstrap(MessageInput input) |
protected LinkedHashMap<String,Callable<? extends io.netty.channel.ChannelHandler>> |
getChildChannelHandlers(MessageInput input)
Subclasses can override this to modify the
channel handlers for child channels. |
SocketAddress |
getLocalAddress()
Get the local socket address this transport is listening on after being launched.
|
void |
launch(MessageInput input) |
void |
stop() |
getAggregator, getChannelHandlers, getChannelInitializer, getCustomChildChannelHandlers, getMetricSet, getRecvBufferSize, setMessageAggregatorprotected final Configuration configuration
protected final io.netty.channel.EventLoopGroup parentEventLoopGroup
protected io.netty.channel.EventLoopGroup childEventLoopGroup
@Deprecated public AbstractTcpTransport(Configuration configuration, ThroughputCounter throughputCounter, LocalMetricRegistry localRegistry, io.netty.channel.EventLoopGroup parentEventLoopGroup, EventLoopGroupFactory eventLoopGroupFactory, NettyTransportConfiguration nettyTransportConfiguration, Configuration graylogConfiguration)
public AbstractTcpTransport(Configuration configuration, ThroughputCounter throughputCounter, LocalMetricRegistry localRegistry, io.netty.channel.EventLoopGroup parentEventLoopGroup, EventLoopGroupFactory eventLoopGroupFactory, NettyTransportConfiguration nettyTransportConfiguration, TLSProtocolsConfiguration tlsConfiguration)
protected io.netty.bootstrap.ServerBootstrap getBootstrap(MessageInput input)
public void launch(MessageInput input) throws MisfireException
MisfireException@Nullable public SocketAddress getLocalAddress()
NettyTransportgetLocalAddress in class NettyTransportnull if the transport hasn't been launched yet.public void stop()
protected LinkedHashMap<String,Callable<? extends io.netty.channel.ChannelHandler>> getChildChannelHandlers(MessageInput input)
NettyTransportchannel handlers for child channels.
The default handlers in this group are all channel handlers returned by NettyTransport.getCustomChildChannelHandlers(MessageInput),
the optional aggregation handler (e.g. for chunked GELF via UDP) and the RawMessageHandler (in that order).
Usually overriding this method should only be necessary if you have a codec that cannot create a
RawMessage for incoming messages at the end of the pipeline.
A valid use case would be to insert debug handlers in the middle of the list, though.getChildChannelHandlers in class NettyTransportinput - The MessageInput for which these child channel handlers are being addedchannel handlers to add to the Netty channel pipeline for child channelsNettyTransport.getCustomChildChannelHandlers(MessageInput)Copyright © 2012–2021 Graylog, Inc.. All rights reserved.