Class BGPServerSessionNegotiator
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
org.opendaylight.protocol.bgp.rib.impl.BGPServerSessionNegotiator
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler,SessionNegotiator
public final class BGPServerSessionNegotiator
extends io.netty.channel.ChannelInboundHandlerAdapter
Server negotiator. Validates established connections using BGPServerSessionValidator
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Constructor Summary
ConstructorsConstructorDescriptionBGPServerSessionNegotiator(io.netty.util.concurrent.Promise<BGPSessionImpl> promise, io.netty.channel.Channel channel, BGPPeerRegistry registry) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidchannelActive(io.netty.channel.ChannelHandlerContext ctx) final voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) protected org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZonegetDestinationId(Open openMsg, BGPSessionPreferences preferences) Get destination identifier.protected org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZonegetSourceId(Open openMsg, BGPSessionPreferences preferences) Get source identifier.org.opendaylight.protocol.bgp.rib.impl.AbstractBGPSessionNegotiator.StategetState()Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemovedMethods inherited from interface io.netty.channel.ChannelInboundHandler
channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
-
Constructor Details
-
BGPServerSessionNegotiator
public BGPServerSessionNegotiator(io.netty.util.concurrent.Promise<BGPSessionImpl> promise, io.netty.channel.Channel channel, BGPPeerRegistry registry)
-
-
Method Details
-
getSourceId
protected org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone getSourceId(Open openMsg, BGPSessionPreferences preferences) Get source identifier.- Parameters:
openMsg- Open message received from remote BGP speakerpreferences- Local BGP speaker preferences- Returns:
- BGP Id of device that accepted the connection
-
getDestinationId
protected org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone getDestinationId(Open openMsg, BGPSessionPreferences preferences) Get destination identifier.- Parameters:
openMsg- Open message received from remote BGP speakerpreferences- Local BGP speaker preferences- Returns:
- BGP Id of device that accepted the connection
-
getState
public org.opendaylight.protocol.bgp.rib.impl.AbstractBGPSessionNegotiator.State getState() -
channelActive
public final void channelActive(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
channelActivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelActivein classio.netty.channel.ChannelInboundHandlerAdapter
-
channelRead
- Specified by:
channelReadin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadin classio.netty.channel.ChannelInboundHandlerAdapter
-
exceptionCaught
- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter
-