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.ChannelInboundHandlerAdapter
Simple client handler.
- Author:
- michal.polkorab
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSimpleClientHandler
(com.google.common.util.concurrent.SettableFuture<Boolean> isOnlineFuture, ScenarioHandler scenarioHandler) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
channelActive
(io.netty.channel.ChannelHandlerContext ctx) void
channelRead
(io.netty.channel.ChannelHandlerContext ctx, Object msg) void
setScenario
(ScenarioHandler handler) Sets the ScenarioHandler.Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Field Details
-
scenarioHandler
-
-
Constructor Details
-
SimpleClientHandler
public SimpleClientHandler(com.google.common.util.concurrent.SettableFuture<Boolean> isOnlineFuture, ScenarioHandler scenarioHandler) Constructor.- Parameters:
isOnlineFuture
- future notifier of connected channelscenarioHandler
- handler of scenario events
-
-
Method Details
-
channelRead
- Specified by:
channelRead
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelRead
in classio.netty.channel.ChannelInboundHandlerAdapter
-
channelActive
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
channelActive
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelActive
in classio.netty.channel.ChannelInboundHandlerAdapter
-
setScenario
Sets the ScenarioHandler.- Parameters:
handler
- handler of scenario events
-