public class IsisChannelHandler
extends org.jboss.netty.handler.timeout.IdleStateAwareChannelHandler
| Constructor and Description |
|---|
IsisChannelHandler(Controller controller,
List<org.onosproject.isis.controller.IsisProcess> processes)
Creates an instance of ISIS channel handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent evt) |
void |
channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent evt) |
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e) |
void |
initializeInterfaceIpList()
Initializes the interface with all interface ip details.
|
void |
initializeInterfaceMap()
Initializes the interface map with interface details.
|
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e) |
void |
processIsisMessage(org.onosproject.isis.controller.IsisMessage isisMessage,
org.jboss.netty.channel.ChannelHandlerContext ctx)
When an ISIS message received it is handed over to this method.
|
void |
sentConfigPacket(byte[] configPacket)
Sends the interface configuration packet to server.
|
void |
startHelloSender()
Starts the hello timer which sends hello packet every configured seconds.
|
void |
stopHelloSender()
Stops the hello timer.
|
void |
updateInterfaceMap(List<org.onosproject.isis.controller.IsisProcess> isisProcesses)
Updates the interface map with interface details.
|
channelIdle, handleUpstreambindRequested, channelBound, channelClosed, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, handleDownstream, setInterestOpsRequested, unbindRequested, writeComplete, writeRequestedpublic IsisChannelHandler(Controller controller, List<org.onosproject.isis.controller.IsisProcess> processes)
controller - controller instanceprocesses - list of configured processespublic void initializeInterfaceMap()
public void updateInterfaceMap(List<org.onosproject.isis.controller.IsisProcess> isisProcesses)
isisProcesses - updated process instancespublic void initializeInterfaceIpList()
public void channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent evt)
throws Exception
channelConnected in class org.jboss.netty.channel.SimpleChannelHandlerExceptionpublic void channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent evt)
channelDisconnected in class org.jboss.netty.channel.SimpleChannelHandlerpublic void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e)
throws Exception
exceptionCaught in class org.jboss.netty.channel.SimpleChannelHandlerExceptionpublic void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e)
throws Exception
messageReceived in class org.jboss.netty.channel.SimpleChannelHandlerExceptionpublic void processIsisMessage(org.onosproject.isis.controller.IsisMessage isisMessage,
org.jboss.netty.channel.ChannelHandlerContext ctx)
throws Exception
isisMessage - received ISIS messagectx - channel handler context instance.Exception - might throws exceptionpublic void startHelloSender()
public void stopHelloSender()
public void sentConfigPacket(byte[] configPacket)
configPacket - interface configurationCopyright © 2016. All rights reserved.