Class UdpSimpleClientInitializer
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelInitializer<io.netty.channel.socket.DatagramChannel>
org.opendaylight.openflowjava.protocol.impl.clients.UdpSimpleClientInitializer
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class UdpSimpleClientInitializer
extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.DatagramChannel>
Initializes udp pipeline.
- Author:
- michal.polkorab
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Constructor Summary
ConstructorsConstructorDescriptionUdpSimpleClientInitializer(com.google.common.util.concurrent.SettableFuture<Boolean> isOnlineFuture) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidinitChannel(io.netty.channel.socket.DatagramChannel ch) voidsetScenario(ScenarioHandler handler) Sets the ScenarioHandler.Methods 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
-
UdpSimpleClientInitializer
public UdpSimpleClientInitializer(com.google.common.util.concurrent.SettableFuture<Boolean> isOnlineFuture) Constructor.- Parameters:
isOnlineFuture- future notifier of connected channel
-
-
Method Details
-
initChannel
public void initChannel(io.netty.channel.socket.DatagramChannel ch) - Specified by:
initChannelin classio.netty.channel.ChannelInitializer<io.netty.channel.socket.DatagramChannel>
-
setScenario
Sets the ScenarioHandler.- Parameters:
handler- handler of scenario events
-