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
BGPDocumentedExceptionprotected 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
MessageRegistryparseMessage in interface MessageRegistrybuffer - Input buffer with encoded message.constraint - Peer specific constraint.BGPDocumentedExceptionBGPParsingExceptionpublic final void serializeMessage(org.opendaylight.yangtools.yang.binding.Notification message,
io.netty.buffer.ByteBuf buffer)
MessageRegistryserializeMessage in interface MessageRegistrymessage - Input BGP Message to be serialized.buffer - Output buffer where message is to be written.Copyright © 2019 OpenDaylight. All rights reserved.