public interface DeserializerExtensionProvider
This has to be done in this way because of experimenter headers, which provide only vendor / experimenter ID. Subtype position may be different for different vendors (or not present at all) - that's why vendor has to handle it in his own implementations.
Modifier and Type | Method and Description |
---|---|
void |
registerActionDeserializer(ExperimenterActionDeserializerKey key,
OFGeneralDeserializer deserializer)
Registers action deserializer.
|
void |
registerDeserializer(MessageCodeKey key,
OFGeneralDeserializer deserializer)
Registers deserializer.
|
void |
registerDeserializerMapping(TypeToClassKey key,
Class<?> clazz)
Registers type to class mapping used to assign return type when deserializing message.
|
void |
registerErrorDeserializer(ExperimenterIdDeserializerKey key,
OFDeserializer<ErrorMessage> deserializer)
Registers error message deserializer.
|
void |
registerExperimenterMessageDeserializer(ExperimenterIdDeserializerKey key,
OFDeserializer<? extends ExperimenterDataOfChoice> deserializer)
Registers experimenter (vendor) message deserializer.
|
void |
registerInstructionDeserializer(ExperimenterInstructionDeserializerKey key,
OFGeneralDeserializer deserializer)
Registers instruction deserializer.
|
void |
registerMatchEntryDeserializer(MatchEntryDeserializerKey key,
OFGeneralDeserializer deserializer)
Registers match entry deserializer.
|
void |
registerMeterBandDeserializer(ExperimenterIdDeserializerKey key,
OFDeserializer<MeterBandExperimenterCase> deserializer)
Registers meter band deserializer (used in multipart-reply meter-config).
|
void |
registerMultipartReplyMessageDeserializer(ExperimenterIdDeserializerKey key,
OFDeserializer<? extends ExperimenterDataOfChoice> deserializer)
Registers multipart-reply (stats) message deserializer.
|
void |
registerMultipartReplyTFDeserializer(ExperimenterIdDeserializerKey key,
OFGeneralDeserializer deserializer)
Registers multipart-reply table-features message deserializer.
|
void |
registerQueuePropertyDeserializer(ExperimenterIdDeserializerKey key,
OFDeserializer<QueueProperty> deserializer)
Registers queue property (QUEUE_GET_CONFIG_REPLY message) deserializer.
|
boolean |
unregisterDeserializer(ExperimenterDeserializerKey key)
Unregisters custom deserializer.
|
boolean |
unregisterDeserializerMapping(TypeToClassKey key)
Unregisters type to class mapping used to assign return type when deserializing message.
|
void registerDeserializer(MessageCodeKey key, OFGeneralDeserializer deserializer)
If the deserializer implements DeserializerRegistryInjector
interface,
the deserializer is injected with DeserializerRegistry instance.
key
- used for deserializer lookupdeserializer
- deserializer instanceboolean unregisterDeserializer(ExperimenterDeserializerKey key)
key
- used for deserializer lookupvoid registerActionDeserializer(ExperimenterActionDeserializerKey key, OFGeneralDeserializer deserializer)
key
- used for deserializer lookupdeserializer
- deserializer instancevoid registerInstructionDeserializer(ExperimenterInstructionDeserializerKey key, OFGeneralDeserializer deserializer)
key
- used for deserializer lookupdeserializer
- deserializer instancevoid registerMatchEntryDeserializer(MatchEntryDeserializerKey key, OFGeneralDeserializer deserializer)
key
- used for deserializer lookupdeserializer
- deserializer instancevoid registerErrorDeserializer(ExperimenterIdDeserializerKey key, OFDeserializer<ErrorMessage> deserializer)
key
- used for deserializer lookupdeserializer
- deserializer instancevoid registerExperimenterMessageDeserializer(ExperimenterIdDeserializerKey key, OFDeserializer<? extends ExperimenterDataOfChoice> deserializer)
key
- used for deserializer lookupdeserializer
- deserializer instancevoid registerMultipartReplyMessageDeserializer(ExperimenterIdDeserializerKey key, OFDeserializer<? extends ExperimenterDataOfChoice> deserializer)
key
- used for deserializer lookupdeserializer
- deserializer instancevoid registerMultipartReplyTFDeserializer(ExperimenterIdDeserializerKey key, OFGeneralDeserializer deserializer)
key
- used for deserializer lookupdeserializer
- deserializer instancevoid registerMeterBandDeserializer(ExperimenterIdDeserializerKey key, OFDeserializer<MeterBandExperimenterCase> deserializer)
key
- used for deserializer lookupdeserializer
- deserializer instancevoid registerQueuePropertyDeserializer(ExperimenterIdDeserializerKey key, OFDeserializer<QueueProperty> deserializer)
key
- used for deserializer lookupdeserializer
- deserializer instancevoid registerDeserializerMapping(TypeToClassKey key, Class<?> clazz)
key
- type to class keyclazz
- return classboolean unregisterDeserializerMapping(TypeToClassKey key)
key
- type to class keyCopyright © 2020 OpenDaylight. All rights reserved.