Class SimpleBmpMessageRegistry
java.lang.Object
org.opendaylight.protocol.bmp.spi.registry.SimpleBmpMessageRegistry
- All Implemented Interfaces:
BmpMessageParser
,BmpMessageSerializer
,BmpMessageRegistrator
,BmpMessageRegistry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yangtools.yang.binding.Notification<?>
parseMessage
(io.netty.buffer.ByteBuf buffer) org.opendaylight.yangtools.concepts.Registration
registerBmpMessageParser
(int messageType, BmpMessageParser parser) <T extends org.opendaylight.yangtools.yang.binding.Notification<T> & org.opendaylight.yangtools.yang.binding.DataObject>
org.opendaylight.yangtools.concepts.RegistrationregisterBmpMessageSerializer
(Class<T> msgClass, BmpMessageSerializer serializer) void
serializeMessage
(org.opendaylight.yangtools.yang.binding.Notification<?> message, io.netty.buffer.ByteBuf buffer)
-
Constructor Details
-
SimpleBmpMessageRegistry
public SimpleBmpMessageRegistry()
-
-
Method Details
-
registerBmpMessageParser
public org.opendaylight.yangtools.concepts.Registration registerBmpMessageParser(int messageType, BmpMessageParser parser) - Specified by:
registerBmpMessageParser
in interfaceBmpMessageRegistrator
-
registerBmpMessageSerializer
public <T extends org.opendaylight.yangtools.yang.binding.Notification<T> & org.opendaylight.yangtools.yang.binding.DataObject> org.opendaylight.yangtools.concepts.Registration registerBmpMessageSerializer(Class<T> msgClass, BmpMessageSerializer serializer) - Specified by:
registerBmpMessageSerializer
in interfaceBmpMessageRegistrator
-
parseMessage
public org.opendaylight.yangtools.yang.binding.Notification<?> parseMessage(io.netty.buffer.ByteBuf buffer) throws BmpDeserializationException - Specified by:
parseMessage
in interfaceBmpMessageParser
- Throws:
BmpDeserializationException
-
serializeMessage
public void serializeMessage(org.opendaylight.yangtools.yang.binding.Notification<?> message, io.netty.buffer.ByteBuf buffer) - Specified by:
serializeMessage
in interfaceBmpMessageSerializer
-