public class ControllerChannelHandler extends OFChannelHandler
channel, ctrl, sw
Constructor and Description |
---|
ControllerChannelHandler(OpenVirteXController ctrl,
OVXSwitch sw) |
Modifier and Type | Method and Description |
---|---|
void |
channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e) |
void |
channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e) |
void |
channelIdle(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.handler.timeout.IdleStateEvent e) |
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e) |
org.jboss.netty.channel.Channel |
getChannel() |
protected String |
getSwitchInfoString() |
boolean |
isHandShakeComplete() |
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e) |
protected void |
sendHandShakeMessage(OFType type) |
handleUpstream
bindRequested, channelBound, channelClosed, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, handleDownstream, setInterestOpsRequested, unbindRequested, writeComplete, writeRequested
public ControllerChannelHandler(OpenVirteXController ctrl, OVXSwitch sw)
public boolean isHandShakeComplete()
isHandShakeComplete
in class OFChannelHandler
protected String getSwitchInfoString()
getSwitchInfoString
in class OFChannelHandler
public void channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e) throws Exception
channelConnected
in class org.jboss.netty.channel.SimpleChannelHandler
Exception
public void channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e) throws Exception
channelDisconnected
in class org.jboss.netty.channel.SimpleChannelHandler
Exception
protected void sendHandShakeMessage(OFType type) throws IOException
sendHandShakeMessage
in class OFChannelHandler
IOException
public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e) throws Exception
messageReceived
in class org.jboss.netty.channel.SimpleChannelHandler
Exception
public void channelIdle(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.handler.timeout.IdleStateEvent e) throws Exception
channelIdle
in class org.jboss.netty.handler.timeout.IdleStateAwareChannelHandler
Exception
public org.jboss.netty.channel.Channel getChannel()
Copyright © 2015. All rights reserved.