Class TcpChannelInitializer
- java.lang.Object
- 
- io.netty.channel.ChannelHandlerAdapter
- 
- io.netty.channel.ChannelInboundHandlerAdapter
- 
- io.netty.channel.ChannelInitializer<C>
- 
- 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
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description TcpChannelInitializer()Default constructor.protectedTcpChannelInitializer(io.netty.channel.group.DefaultChannelGroup channelGroup, ConnectionAdapterFactory connAdaptorFactory)Testing constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<io.netty.channel.Channel>getConnectionIterator()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.ProtocolChannelInitializergetChannelOutboundQueueSize, getDeserializationFactory, getSerializationFactory, getSwitchConnectionHandler, getSwitchIdleTimeout, getTlsConfiguration, setChannelOutboundQueueSize, setDeserializationFactory, setSerializationFactory, setSwitchConnectionHandler, setSwitchIdleTimeout, setTlsConfiguration, setUseBarrier, useBarrier
 - 
Methods inherited from class io.netty.channel.ChannelInitializerchannelRegistered, exceptionCaught, handlerAdded, handlerRemoved
 
- 
 
- 
- 
- 
Constructor Detail- 
TcpChannelInitializerpublic TcpChannelInitializer() Default constructor.
 - 
TcpChannelInitializerprotected TcpChannelInitializer(io.netty.channel.group.DefaultChannelGroup channelGroup, ConnectionAdapterFactory connAdaptorFactory)Testing constructor.
 
- 
 - 
Method Detail- 
initChannelprotected void initChannel(io.netty.channel.socket.SocketChannel ch) - Specified by:
- initChannelin class- io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
 
 - 
getConnectionIteratorpublic Iterator<io.netty.channel.Channel> getConnectionIterator() Returns the connection iterator.- Returns:
- iterator through active connections
 
 - 
sizepublic int size() Returns the number of active channels.- Returns:
- amount of active channels
 
 
- 
 
-