Class BGPNotificationMessageParser

java.lang.Object
org.opendaylight.protocol.bgp.parser.impl.message.BGPNotificationMessageParser
All Implemented Interfaces:
org.opendaylight.protocol.bgp.parser.spi.MessageParser, org.opendaylight.protocol.bgp.parser.spi.MessageSerializer

public final class BGPNotificationMessageParser extends Object implements org.opendaylight.protocol.bgp.parser.spi.MessageParser, org.opendaylight.protocol.bgp.parser.spi.MessageSerializer
Parser for BGPNotification message.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev200120.Notify
    parseMessageBody(io.netty.buffer.ByteBuf body, int messageLength, org.opendaylight.protocol.bgp.parser.spi.PeerSpecificParserConstraint constraint)
    Parses BGP Notification message to bytes.
    void
    serializeMessage(org.opendaylight.yangtools.yang.binding.Notification<?> msg, io.netty.buffer.ByteBuf bytes)
    Serializes BGP Notification message.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • BGPNotificationMessageParser

      public BGPNotificationMessageParser()
  • Method Details

    • serializeMessage

      public void serializeMessage(org.opendaylight.yangtools.yang.binding.Notification<?> msg, io.netty.buffer.ByteBuf bytes)
      Serializes BGP Notification message.
      Specified by:
      serializeMessage in interface org.opendaylight.protocol.bgp.parser.spi.MessageSerializer
      Parameters:
      msg - to be serialized
      bytes - ByteBuf where the message will be serialized
    • parseMessageBody

      public org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev200120.Notify parseMessageBody(io.netty.buffer.ByteBuf body, int messageLength, org.opendaylight.protocol.bgp.parser.spi.PeerSpecificParserConstraint constraint) throws org.opendaylight.protocol.bgp.parser.BGPDocumentedException
      Parses BGP Notification message to bytes.
      Specified by:
      parseMessageBody in interface org.opendaylight.protocol.bgp.parser.spi.MessageParser
      Parameters:
      body - ByteBuf to be parsed
      messageLength - the length of the message
      Returns:
      Notify which represents BGP notification message
      Throws:
      org.opendaylight.protocol.bgp.parser.BGPDocumentedException - if parsing goes wrong