Class TcpChannelInitializer
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
org.opendaylight.openflowjava.protocol.impl.core.ProtocolChannelInitializer<io.netty.channel.socket.SocketChannel>
org.opendaylight.openflowjava.protocol.impl.core.TcpChannelInitializer
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class TcpChannelInitializer
extends ProtocolChannelInitializer<io.netty.channel.socket.SocketChannel>
Initializes TCP / TLS channel.
- Author:
- michal.polkorab
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Constructor Summary
ConstructorsModifierConstructorDescriptionDefault constructor.protectedTcpChannelInitializer(io.netty.channel.group.DefaultChannelGroup channelGroup, ConnectionAdapterFactory connAdaptorFactory) Testing constructor. -
Method Summary
Modifier and TypeMethodDescriptionIterator<io.netty.channel.Channel> Returns the connection iterator.protected voidinitChannel(io.netty.channel.socket.SocketChannel ch) intsize()Returns the number of active channels.Methods inherited from class org.opendaylight.openflowjava.protocol.impl.core.ProtocolChannelInitializer
getChannelOutboundQueueSize, getDeserializationFactory, getSerializationFactory, getSwitchConnectionHandler, getSwitchIdleTimeout, getTlsConfiguration, setChannelOutboundQueueSize, setDeserializationFactory, setSerializationFactory, setSwitchConnectionHandler, setSwitchIdleTimeout, setTlsConfiguration, setUseBarrier, useBarrierMethods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemovedMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable
-
Constructor Details
-
TcpChannelInitializer
public TcpChannelInitializer()Default constructor. -
TcpChannelInitializer
protected TcpChannelInitializer(io.netty.channel.group.DefaultChannelGroup channelGroup, ConnectionAdapterFactory connAdaptorFactory) Testing constructor.
-
-
Method Details
-
initChannel
protected void initChannel(io.netty.channel.socket.SocketChannel ch) - Specified by:
initChannelin classio.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
-
getConnectionIterator
Returns the connection iterator.- Returns:
- iterator through active connections
-
size
public int size()Returns the number of active channels.- Returns:
- amount of active channels
-