Class BGPClientSessionNegotiator
- java.lang.Object
- 
- io.netty.channel.ChannelHandlerAdapter
- 
- io.netty.channel.ChannelInboundHandlerAdapter
- 
- org.opendaylight.protocol.bgp.rib.impl.BGPClientSessionNegotiator
 
 
 
- 
- All Implemented Interfaces:
- io.netty.channel.ChannelHandler,- io.netty.channel.ChannelInboundHandler,- SessionNegotiator
 
 public final class BGPClientSessionNegotiator extends io.netty.channel.ChannelInboundHandlerAdapterClient negotiator. Validates established connections using BGPClientSessionValidator.
- 
- 
Constructor SummaryConstructors Constructor Description BGPClientSessionNegotiator(io.netty.util.concurrent.Promise<BGPSessionImpl> promise, io.netty.channel.Channel channel, BGPPeerRegistry registry)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelActive(io.netty.channel.ChannelHandlerContext ctx)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.ChannelInboundHandlerAdapterchannelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
 - 
Methods inherited from class io.netty.channel.ChannelHandlerAdapterensureNotSharable, handlerAdded, handlerRemoved, isSharable
 
- 
 
- 
- 
- 
Constructor Detail- 
BGPClientSessionNegotiatorpublic BGPClientSessionNegotiator(io.netty.util.concurrent.Promise<BGPSessionImpl> promise, io.netty.channel.Channel channel, BGPPeerRegistry registry) 
 
- 
 - 
Method Detail- 
getDestinationIdprotected 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 speaker
- preferences- Local BGP speaker preferences
- Returns:
- BGP Id of device that accepted the connection
 
 - 
getSourceIdprotected 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 speaker
- preferences- Local BGP speaker preferences
- Returns:
- BGP Id of device that accepted the connection
 
 - 
getStatepublic org.opendaylight.protocol.bgp.rib.impl.AbstractBGPSessionNegotiator.State getState() 
 - 
channelActivepublic final void channelActive(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
- channelActivein interface- io.netty.channel.ChannelInboundHandler
- Overrides:
- channelActivein class- io.netty.channel.ChannelInboundHandlerAdapter
 
 - 
channelReadpublic final void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)- Specified by:
- channelReadin interface- io.netty.channel.ChannelInboundHandler
- Overrides:
- channelReadin class- io.netty.channel.ChannelInboundHandlerAdapter
 
 - 
exceptionCaughtpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)- Specified by:
- exceptionCaughtin interface- io.netty.channel.ChannelHandler
- Specified by:
- exceptionCaughtin interface- io.netty.channel.ChannelInboundHandler
- Overrides:
- exceptionCaughtin class- io.netty.channel.ChannelInboundHandlerAdapter
 
 
- 
 
-