public class SwitchChannelHandler extends OFChannelHandler
Modifier and Type | Field and Description |
---|---|
protected ArrayList<OFPortStatus> |
pendingPortStatusMsg |
channel, ctrl, sw
Constructor and Description |
---|
SwitchChannelHandler(OpenVirteXController ctrl) |
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) |
protected String |
getSwitchInfoString()
Return.
|
boolean |
isHandShakeComplete() |
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e) |
protected void |
sendHandshakeDescriptionStatsRequest() |
protected void |
sendHandShakeMessage(OFType type)
Send a message to the switch using the handshake transactions ids.
|
handleUpstream
bindRequested, channelBound, channelClosed, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, handleDownstream, setInterestOpsRequested, unbindRequested, writeComplete, writeRequested
protected ArrayList<OFPortStatus> pendingPortStatusMsg
public SwitchChannelHandler(OpenVirteXController ctrl)
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
type
- the typeIOException
protected void sendHandshakeDescriptionStatsRequest()
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 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
Copyright © 2015. All rights reserved.