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 Link icon

    Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler Link icon

    io.netty.channel.ChannelHandler.Sharable
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    BGPServerSessionNegotiator(io.netty.util.concurrent.Promise<BGPSessionImpl> promise, io.netty.channel.Channel channel, BGPPeerRegistry registry)
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    final void
    channelActive(io.netty.channel.ChannelHandlerContext ctx)
     
    final void
    channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)
     
    void
    exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
     
    protected org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone
    Get destination identifier.
    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.
    org.opendaylight.protocol.bgp.rib.impl.AbstractBGPSessionNegotiator.State
     

    Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter Link icon

    channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered

    Methods inherited from class io.netty.channel.ChannelHandlerAdapter Link icon

    ensureNotSharable, handlerAdded, handlerRemoved, isSharable

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.netty.channel.ChannelHandler Link icon

    handlerAdded, handlerRemoved

    Methods inherited from interface io.netty.channel.ChannelInboundHandler Link icon

    channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
  • Constructor Details Link icon

    • BGPServerSessionNegotiator Link icon

      public BGPServerSessionNegotiator(io.netty.util.concurrent.Promise<BGPSessionImpl> promise, io.netty.channel.Channel channel, BGPPeerRegistry registry)
  • Method Details Link icon

    • getSourceId Link icon

      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 speaker
      preferences - Local BGP speaker preferences
      Returns:
      BGP Id of device that accepted the connection
    • getDestinationId Link icon

      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 speaker
      preferences - Local BGP speaker preferences
      Returns:
      BGP Id of device that accepted the connection
    • getState Link icon

      public org.opendaylight.protocol.bgp.rib.impl.AbstractBGPSessionNegotiator.State getState()
    • channelActive Link icon

      public final void channelActive(io.netty.channel.ChannelHandlerContext ctx)
      Specified by:
      channelActive in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelActive in class io.netty.channel.ChannelInboundHandlerAdapter
    • channelRead Link icon

      public final void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)
      Specified by:
      channelRead in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelRead in class io.netty.channel.ChannelInboundHandlerAdapter
    • exceptionCaught Link icon

      public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
      Specified by:
      exceptionCaught in interface io.netty.channel.ChannelHandler
      Specified by:
      exceptionCaught in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      exceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapter