Class BGPNotificationMessageParser
- java.lang.Object
-
- org.opendaylight.protocol.bgp.parser.impl.message.BGPNotificationMessageParser
-
- All Implemented Interfaces:
MessageParser,MessageSerializer
public final class BGPNotificationMessageParser extends Object implements MessageParser, MessageSerializer
Parser for BGPNotification message.
-
-
Field Summary
Fields Modifier and Type Field Description static intTYPE
-
Constructor Summary
Constructors Constructor Description BGPNotificationMessageParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NotifyparseMessageBody(io.netty.buffer.ByteBuf body, int messageLength, 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 Detail
-
TYPE
public static final int TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
serializeMessage
public void serializeMessage(org.opendaylight.yangtools.yang.binding.Notification msg, io.netty.buffer.ByteBuf bytes)Serializes BGP Notification message.- Specified by:
serializeMessagein interfaceMessageSerializer- Parameters:
msg- to be serializedbytes- ByteBuf where the message will be serialized
-
parseMessageBody
public Notify parseMessageBody(io.netty.buffer.ByteBuf body, int messageLength, PeerSpecificParserConstraint constraint) throws BGPDocumentedException
Parses BGP Notification message to bytes.- Specified by:
parseMessageBodyin interfaceMessageParser- Parameters:
body- ByteBuf to be parsedmessageLength- the length of the messageconstraint- Peer specific constraints, implementations may ignore them.- Returns:
Notifywhich represents BGP notification message- Throws:
BGPDocumentedException- if parsing goes wrong
-
-