public final class BmpMockSession extends io.netty.channel.SimpleChannelInboundHandler<org.opendaylight.yangtools.yang.binding.Notification> implements BmpSession
Constructor and Description |
---|
BmpMockSession(int peersCount,
int prePolicyRoutesCount,
int postPolicyRoutesCount) |
Modifier and Type | Method and Description |
---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
org.opendaylight.yangtools.yang.binding.Notification msg) |
void |
close() |
InetAddress |
getRemoteAddress() |
acceptInboundMessage, channelRead
channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BmpMockSession(int peersCount, int prePolicyRoutesCount, int postPolicyRoutesCount)
public void close() throws InterruptedException
close
in interface AutoCloseable
InterruptedException
public InetAddress getRemoteAddress()
getRemoteAddress
in interface BmpSession
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, org.opendaylight.yangtools.yang.binding.Notification msg) throws Exception
channelRead0
in class io.netty.channel.SimpleChannelInboundHandler<org.opendaylight.yangtools.yang.binding.Notification>
Exception
public void channelActive(io.netty.channel.ChannelHandlerContext ctx)
channelActive
in interface io.netty.channel.ChannelInboundHandler
channelActive
in class io.netty.channel.ChannelInboundHandlerAdapter
Copyright © 2019 OpenDaylight. All rights reserved.