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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intfinal org.opendaylight.yangtools.binding.Notification<?> parseMessage(io.netty.buffer.ByteBuf bytes) abstract org.opendaylight.yangtools.binding.Notification<?> parseMessageBody(io.netty.buffer.ByteBuf bytes) final voidserializeMessage(org.opendaylight.yangtools.binding.Notification<?> message, io.netty.buffer.ByteBuf buffer) abstract voidserializeMessageBody(org.opendaylight.yangtools.binding.Notification<?> message, io.netty.buffer.ByteBuf buffer)
-
Constructor Details
-
AbstractBmpMessageParser
public AbstractBmpMessageParser()
-
-
Method Details
-
serializeMessage
public final void serializeMessage(org.opendaylight.yangtools.binding.Notification<?> message, io.netty.buffer.ByteBuf buffer) - Specified by:
serializeMessagein interfaceBmpMessageSerializer
-
parseMessage
public final org.opendaylight.yangtools.binding.Notification<?> parseMessage(io.netty.buffer.ByteBuf bytes) throws BmpDeserializationException - Specified by:
parseMessagein interfaceBmpMessageParser- Throws:
BmpDeserializationException
-
serializeMessageBody
public abstract void serializeMessageBody(org.opendaylight.yangtools.binding.Notification<?> message, io.netty.buffer.ByteBuf buffer) -
parseMessageBody
public abstract org.opendaylight.yangtools.binding.Notification<?> parseMessageBody(io.netty.buffer.ByteBuf bytes) throws BmpDeserializationException - Throws:
BmpDeserializationException
-
getBmpMessageType
public abstract int getBmpMessageType()
-