public abstract class AbstractMessageRegistry extends Object implements MessageRegistry
Constructor and Description |
---|
AbstractMessageRegistry() |
Modifier and Type | Method and 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) |
protected abstract org.opendaylight.yangtools.yang.binding.Notification parseBody(int type, io.netty.buffer.ByteBuf body, int messageLength, PeerSpecificParserConstraint constraint) throws BGPDocumentedException
BGPDocumentedException
protected abstract void serializeMessageImpl(org.opendaylight.yangtools.yang.binding.Notification message, io.netty.buffer.ByteBuf buffer)
public org.opendaylight.yangtools.yang.binding.Notification parseMessage(io.netty.buffer.ByteBuf buffer, PeerSpecificParserConstraint constraint) throws BGPDocumentedException, BGPParsingException
MessageRegistry
parseMessage
in interface MessageRegistry
buffer
- Input buffer with encoded message.constraint
- Peer specific constraint.BGPDocumentedException
BGPParsingException
public final void serializeMessage(org.opendaylight.yangtools.yang.binding.Notification message, io.netty.buffer.ByteBuf buffer)
MessageRegistry
serializeMessage
in interface MessageRegistry
message
- Input BGP Message to be serialized.buffer
- Output buffer where message is to be written.Copyright © 2019 OpenDaylight. All rights reserved.