Class AbstractMessageRegistry
- java.lang.Object
-
- org.opendaylight.protocol.bgp.parser.spi.AbstractMessageRegistry
-
- All Implemented Interfaces:
MessageRegistry
public abstract class AbstractMessageRegistry extends Object implements MessageRegistry
-
-
Constructor Summary
Constructors Constructor Description AbstractMessageRegistry()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.opendaylight.yangtools.yang.binding.Notification
parseBody(int type, io.netty.buffer.ByteBuf body, int messageLength, PeerSpecificParserConstraint constraint)
org.opendaylight.yangtools.yang.binding.Notification
parseMessage(io.netty.buffer.ByteBuf buffer, PeerSpecificParserConstraint constraint)
Decode input buffer to BGP Message.void
serializeMessage(org.opendaylight.yangtools.yang.binding.Notification message, io.netty.buffer.ByteBuf buffer)
Encode input BGP Message to output buffer.protected abstract void
serializeMessageImpl(org.opendaylight.yangtools.yang.binding.Notification message, io.netty.buffer.ByteBuf buffer)
-
-
-
Method Detail
-
parseBody
protected abstract org.opendaylight.yangtools.yang.binding.Notification parseBody(int type, io.netty.buffer.ByteBuf body, int messageLength, PeerSpecificParserConstraint constraint) throws BGPDocumentedException
- Throws:
BGPDocumentedException
-
serializeMessageImpl
protected abstract void serializeMessageImpl(org.opendaylight.yangtools.yang.binding.Notification message, io.netty.buffer.ByteBuf buffer)
-
parseMessage
public org.opendaylight.yangtools.yang.binding.Notification parseMessage(io.netty.buffer.ByteBuf buffer, PeerSpecificParserConstraint constraint) throws BGPDocumentedException, BGPParsingException
Description copied from interface:MessageRegistry
Decode input buffer to BGP Message.- Specified by:
parseMessage
in interfaceMessageRegistry
- Parameters:
buffer
- Input buffer with encoded message.constraint
- Peer specific constraint.- Returns:
- Parsed BGP message.
- Throws:
BGPDocumentedException
BGPParsingException
-
serializeMessage
public final void serializeMessage(org.opendaylight.yangtools.yang.binding.Notification message, io.netty.buffer.ByteBuf buffer)
Description copied from interface:MessageRegistry
Encode input BGP Message to output buffer.- Specified by:
serializeMessage
in interfaceMessageRegistry
- Parameters:
message
- Input BGP Message to be serialized.buffer
- Output buffer where message is to be written.
-
-