public class SwMessageHandler
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
| Constructor and Description |
|---|
SwMessageHandler(MockOpenflowSwitch sw)
Constructs a mock-switch message handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e) |
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e)
Invoked when an exception was raised by an I/O thread or a
ChannelHandler. |
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e) |
protected void |
processError(OfmError msg) |
protected void |
processFeaturesRequest(OfmFeaturesRequest msg) |
protected void |
processHello(OfmHello msg) |
protected void |
processMultipartRequest(OfmMultipartRequest msg) |
public SwMessageHandler(MockOpenflowSwitch sw)
sw - the switch for which we handle messagespublic void channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
channelConnected in class org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionpublic void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e)
throws Exception
ChannelHandler.exceptionCaught in class org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionpublic void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e)
throws Exception
messageReceived in class org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionprotected void processHello(OfmHello msg)
protected void processError(OfmError msg)
protected void processFeaturesRequest(OfmFeaturesRequest msg)
protected void processMultipartRequest(OfmMultipartRequest msg)
Copyright © 2014. All Rights Reserved.