Class AbstractBmpMessageParser
java.lang.Object
org.opendaylight.protocol.bmp.spi.parser.AbstractBmpMessageParser
- All Implemented Interfaces:
BmpMessageParser
,BmpMessageSerializer
- Direct Known Subclasses:
AbstractBmpMessageWithTlvParser
public abstract class AbstractBmpMessageParser
extends Object
implements BmpMessageParser, BmpMessageSerializer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract int
final org.opendaylight.yangtools.yang.binding.Notification<?>
parseMessage
(io.netty.buffer.ByteBuf bytes) abstract org.opendaylight.yangtools.yang.binding.Notification<?>
parseMessageBody
(io.netty.buffer.ByteBuf bytes) final void
serializeMessage
(org.opendaylight.yangtools.yang.binding.Notification<?> message, io.netty.buffer.ByteBuf buffer) abstract void
serializeMessageBody
(org.opendaylight.yangtools.yang.binding.Notification<?> message, io.netty.buffer.ByteBuf buffer)
-
Constructor Details
-
AbstractBmpMessageParser
public AbstractBmpMessageParser()
-
-
Method Details
-
serializeMessage
public final void serializeMessage(org.opendaylight.yangtools.yang.binding.Notification<?> message, io.netty.buffer.ByteBuf buffer) - Specified by:
serializeMessage
in interfaceBmpMessageSerializer
-
parseMessage
public final org.opendaylight.yangtools.yang.binding.Notification<?> parseMessage(io.netty.buffer.ByteBuf bytes) throws BmpDeserializationException - Specified by:
parseMessage
in interfaceBmpMessageParser
- Throws:
BmpDeserializationException
-
serializeMessageBody
public abstract void serializeMessageBody(org.opendaylight.yangtools.yang.binding.Notification<?> message, io.netty.buffer.ByteBuf buffer) -
parseMessageBody
public abstract org.opendaylight.yangtools.yang.binding.Notification<?> parseMessageBody(io.netty.buffer.ByteBuf bytes) throws BmpDeserializationException - Throws:
BmpDeserializationException
-
getBmpMessageType
public abstract int getBmpMessageType()
-