Class SimpleBmpMessageRegistry
- java.lang.Object
-
- org.opendaylight.protocol.bmp.spi.registry.SimpleBmpMessageRegistry
-
- All Implemented Interfaces:
BmpMessageParser
,BmpMessageSerializer
,BmpMessageRegistrator
,BmpMessageRegistry
public class SimpleBmpMessageRegistry extends Object implements BmpMessageRegistry
-
-
Constructor Summary
Constructors Constructor Description SimpleBmpMessageRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.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)
-
-
-
Method Detail
-
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
-
-