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.
|
handleUpstreambindRequested, channelBound, channelClosed, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, handleDownstream, setInterestOpsRequested, unbindRequested, writeComplete, writeRequestedprotected ArrayList<OFPortStatus> pendingPortStatusMsg
public SwitchChannelHandler(OpenVirteXController ctrl)
public boolean isHandShakeComplete()
isHandShakeComplete in class OFChannelHandlerprotected String getSwitchInfoString()
getSwitchInfoString in class OFChannelHandlerpublic void channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
channelConnected in class org.jboss.netty.channel.SimpleChannelHandlerExceptionpublic void channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
channelDisconnected in class org.jboss.netty.channel.SimpleChannelHandlerExceptionprotected void sendHandShakeMessage(OFType type) throws IOException
sendHandShakeMessage in class OFChannelHandlertype - the typeIOExceptionprotected 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.IdleStateAwareChannelHandlerExceptionpublic void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e)
throws Exception
messageReceived in class org.jboss.netty.channel.SimpleChannelHandlerExceptionCopyright © 2015. All rights reserved.