Class SimpleClientHandler
- java.lang.Object
- 
- io.netty.channel.ChannelHandlerAdapter
- 
- io.netty.channel.ChannelInboundHandlerAdapter
- 
- org.opendaylight.openflowjava.protocol.impl.clients.SimpleClientHandler
 
 
 
- 
- All Implemented Interfaces:
- io.netty.channel.ChannelHandler,- io.netty.channel.ChannelInboundHandler
 
 public class SimpleClientHandler extends io.netty.channel.ChannelInboundHandlerAdapterSimple client handler.- Author:
- michal.polkorab
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected ScenarioHandlerscenarioHandler
 - 
Constructor SummaryConstructors Constructor Description SimpleClientHandler(com.google.common.util.concurrent.SettableFuture<Boolean> isOnlineFuture, ScenarioHandler scenarioHandler)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelActive(io.netty.channel.ChannelHandlerContext ctx)voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)voidsetScenario(ScenarioHandler handler)Sets the ScenarioHandler.- 
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapterchannelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
 - 
Methods inherited from class io.netty.channel.ChannelHandlerAdapterensureNotSharable, handlerAdded, handlerRemoved, isSharable
 
- 
 
- 
- 
- 
Field Detail- 
scenarioHandlerprotected ScenarioHandler scenarioHandler 
 
- 
 - 
Constructor Detail- 
SimpleClientHandlerpublic SimpleClientHandler(com.google.common.util.concurrent.SettableFuture<Boolean> isOnlineFuture, ScenarioHandler scenarioHandler) Constructor.- Parameters:
- isOnlineFuture- future notifier of connected channel
- scenarioHandler- handler of scenario events
 
 
- 
 - 
Method Detail- 
channelReadpublic void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)- Specified by:
- channelReadin interface- io.netty.channel.ChannelInboundHandler
- Overrides:
- channelReadin class- io.netty.channel.ChannelInboundHandlerAdapter
 
 - 
channelActivepublic void channelActive(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
- channelActivein interface- io.netty.channel.ChannelInboundHandler
- Overrides:
- channelActivein class- io.netty.channel.ChannelInboundHandlerAdapter
 
 - 
setScenariopublic void setScenario(ScenarioHandler handler) Sets the ScenarioHandler.- Parameters:
- handler- handler of scenario events
 
 
- 
 
-