Class SimpleClientInitializer
- 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.clients.SimpleClientInitializer
 
 
 
 
- 
- All Implemented Interfaces:
- io.netty.channel.ChannelHandler,- io.netty.channel.ChannelInboundHandler
 
 public class SimpleClientInitializer extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>Initializes securedSimpleClientpipeline.- Author:
- michal.polkorab
 
- 
- 
Constructor SummaryConstructors Constructor Description SimpleClientInitializer(com.google.common.util.concurrent.SettableFuture<Boolean> isOnlineFuture, boolean secured)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitChannel(io.netty.channel.socket.SocketChannel ch)voidsetScenario(ScenarioHandler handler)Sets the ScenarioHandler.- 
Methods inherited from class io.netty.channel.ChannelInitializerchannelRegistered, exceptionCaught, handlerAdded, handlerRemoved
 
- 
 
- 
- 
- 
Constructor Detail- 
SimpleClientInitializerpublic SimpleClientInitializer(com.google.common.util.concurrent.SettableFuture<Boolean> isOnlineFuture, boolean secured) Constructor.- Parameters:
- isOnlineFuture- future notifier of connected channel
- secured- true if- SimpleClientshould use encrypted communication
 
 
- 
 - 
Method Detail- 
initChannelpublic void initChannel(io.netty.channel.socket.SocketChannel ch) - Specified by:
- initChannelin class- io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
 
 - 
setScenariopublic void setScenario(ScenarioHandler handler) Sets the ScenarioHandler.- Parameters:
- handler- handler of scenario events
 
 
- 
 
-