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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev200120.NotifyparseMessageBody(io.netty.buffer.ByteBuf body, int messageLength, org.opendaylight.protocol.bgp.parser.spi.PeerSpecificParserConstraint constraint) Parses BGP Notification message to bytes.voidserializeMessage(org.opendaylight.yangtools.yang.binding.Notification<?> msg, io.netty.buffer.ByteBuf bytes) Serializes BGP Notification message.
-
Field Details
-
TYPE
public static final int TYPE- See Also:
-
-
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:
serializeMessagein interfaceorg.opendaylight.protocol.bgp.parser.spi.MessageSerializer- Parameters:
msg- to be serializedbytes- 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:
parseMessageBodyin interfaceorg.opendaylight.protocol.bgp.parser.spi.MessageParser- Parameters:
body- ByteBuf to be parsedmessageLength- the length of the message- Returns:
Notifywhich represents BGP notification message- Throws:
org.opendaylight.protocol.bgp.parser.BGPDocumentedException- if parsing goes wrong
-