Class BGPUpdateMessageParser
- java.lang.Object
-
- org.opendaylight.protocol.bgp.parser.impl.message.BGPUpdateMessageParser
-
- All Implemented Interfaces:
MessageParser,MessageSerializer
public final class BGPUpdateMessageParser extends Object implements MessageParser, MessageSerializer
LENGTH fields, that denote the length of the fields with variable length, have fixed SIZE.- See Also:
- BGP-4 Update Message Format
-
-
Field Summary
Fields Modifier and Type Field Description static intTYPE
-
Constructor Summary
Constructors Constructor Description BGPUpdateMessageParser(AttributeRegistry attrReg, NlriRegistry nlriReg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateparseMessageBody(io.netty.buffer.ByteBuf buffer, int messageLength, PeerSpecificParserConstraint constraint)Parse Update message from buffer.voidserializeMessage(org.opendaylight.yangtools.yang.binding.Notification<?> message, io.netty.buffer.ByteBuf bytes)
-
-
-
Field Detail
-
TYPE
public static final int TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BGPUpdateMessageParser
public BGPUpdateMessageParser(AttributeRegistry attrReg, NlriRegistry nlriReg)
-
-
Method Detail
-
serializeMessage
public void serializeMessage(org.opendaylight.yangtools.yang.binding.Notification<?> message, io.netty.buffer.ByteBuf bytes)- Specified by:
serializeMessagein interfaceMessageSerializer
-
parseMessageBody
public Update parseMessageBody(io.netty.buffer.ByteBuf buffer, int messageLength, PeerSpecificParserConstraint constraint) throws BGPDocumentedException
Parse Update message from buffer. CallscheckMandatoryAttributesPresence(Update, RevisedErrorHandling)to check for presence of mandatory attributes.- Specified by:
parseMessageBodyin interfaceMessageParser- Parameters:
buffer- Encoded BGP message in ByteBufmessageLength- Length of the BGP messageconstraint- Peer specific constraints- Returns:
- Parsed Update message body
- Throws:
BGPDocumentedException
-
-