public final class BGPNotificationMessageParser extends Object implements MessageParser, MessageSerializer
Modifier and Type | Field and Description |
---|---|
static int |
TYPE |
Constructor and Description |
---|
BGPNotificationMessageParser() |
Modifier and Type | Method and Description |
---|---|
Notify |
parseMessageBody(io.netty.buffer.ByteBuf body,
int messageLength)
Parses BGP Notification message to bytes.
|
void |
serializeMessage(org.opendaylight.yangtools.yang.binding.Notification msg,
io.netty.buffer.ByteBuf bytes)
Serializes BGP Notification message.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parseMessageBody
public static final int TYPE
public void serializeMessage(org.opendaylight.yangtools.yang.binding.Notification msg, io.netty.buffer.ByteBuf bytes)
serializeMessage
in interface MessageSerializer
msg
- to be serializedbytes
- ByteBuf where the message will be serializedpublic Notify parseMessageBody(io.netty.buffer.ByteBuf body, int messageLength) throws BGPDocumentedException
parseMessageBody
in interface MessageParser
body
- ByteBuf to be parsedmessageLength
- the length of the messageNotify
which represents BGP notification messageBGPDocumentedException
- if parsing goes wrongCopyright © 2019 OpenDaylight. All rights reserved.