Class BGPKeepAliveMessageParser
- java.lang.Object
-
- org.opendaylight.protocol.bgp.parser.impl.message.BGPKeepAliveMessageParser
-
- All Implemented Interfaces:
MessageParser,MessageSerializer
public final class BGPKeepAliveMessageParser extends Object implements MessageParser, MessageSerializer
-
-
Field Summary
Fields Modifier and Type Field Description static intTYPE
-
Constructor Summary
Constructors Constructor Description BGPKeepAliveMessageParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeepaliveparseMessageBody(io.netty.buffer.ByteBuf body, int messageLength, PeerSpecificParserConstraint constraint)Parse BGP Message from buffer, potentially applying peer-specific constraints.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
-
-
Method Detail
-
parseMessageBody
public Keepalive parseMessageBody(io.netty.buffer.ByteBuf body, int messageLength, PeerSpecificParserConstraint constraint) throws BGPDocumentedException
Description copied from interface:MessageParserParse BGP Message from buffer, potentially applying peer-specific constraints. Implementations are free- Specified by:
parseMessageBodyin interfaceMessageParser- Parameters:
body- Encoded BGP message in ByteBuf.messageLength- Length of the BGP message.constraint- Peer specific constraints, implementations may ignore them.- Returns:
- Parsed BGP Message body.
- Throws:
BGPDocumentedException
-
serializeMessage
public void serializeMessage(org.opendaylight.yangtools.yang.binding.Notification message, io.netty.buffer.ByteBuf bytes)- Specified by:
serializeMessagein interfaceMessageSerializer
-
-