public interface SerializerExtensionProvider
This has to be done in this way because of unknown augmentations - that's why vendor has to handle it in his own implementations.
Modifier and Type | Method and Description |
---|---|
void |
registerActionSerializer(ActionSerializerKey<?> key,
OFGeneralSerializer serializer)
Registers an action serializer.
|
void |
registerExperimenterMessageSerializer(ExperimenterIdSerializerKey<? extends ExperimenterDataOfChoice> key,
OFSerializer<? extends ExperimenterDataOfChoice> serializer)
Registers an experimenter (vendor) message serializer.
|
void |
registerInstructionSerializer(InstructionSerializerKey<?> key,
OFGeneralSerializer serializer)
Registers an instruction serializer.
|
<C extends OxmClassBase,F extends MatchField> |
registerMatchEntrySerializer(MatchEntrySerializerKey<C,F> key,
OFGeneralSerializer serializer)
Registers a match entry serializer.
|
void |
registerMeterBandSerializer(ExperimenterIdMeterSubTypeSerializerKey<MeterBandExperimenterCase> key,
OFSerializer<MeterBandExperimenterCase> serializer)
Registers a meter band serializer (used in meter-mod messages).
|
void |
registerMeterBandSerializer(ExperimenterIdSerializerKey<MeterBandExperimenterCase> key,
OFSerializer<MeterBandExperimenterCase> serializer)
Deprecated.
Since we use ExperimenterIdMeterSubTypeSerializerKey as MeterBandSerializer's key, in order to avoid
the occurrence of an error,we should discard this function
|
void |
registerMultipartRequestSerializer(ExperimenterIdSerializerKey<? extends ExperimenterDataOfChoice> key,
OFSerializer<? extends ExperimenterDataOfChoice> serializer)
Registers a multipart-request (stats-request) serializer.
|
void |
registerMultipartRequestTFSerializer(ExperimenterIdSerializerKey<TableFeatureProperties> key,
OFGeneralSerializer serializer)
Registers a multipart-request table-features serializer.
|
<K> void |
registerSerializer(MessageTypeKey<K> key,
OFGeneralSerializer serializer)
Registers a custom serializer.
|
boolean |
unregisterSerializer(ExperimenterSerializerKey key)
Unregisters a custom serializer.
|
<K> void registerSerializer(MessageTypeKey<K> key, OFGeneralSerializer serializer)
Throws IllegalStateException when there is a serializer already registered under given key.
If the serializer implements SerializerRegistryInjector
interface,
the serializer is injected with SerializerRegistry instance.
K
- serializer key typekey
- used for serializer lookupserializer
- serializer implementationboolean unregisterSerializer(ExperimenterSerializerKey key)
key
- used for serializer lookupvoid registerActionSerializer(ActionSerializerKey<?> key, OFGeneralSerializer serializer)
key
- used for serializer lookupserializer
- serializer implementationvoid registerInstructionSerializer(InstructionSerializerKey<?> key, OFGeneralSerializer serializer)
key
- used for serializer lookupserializer
- serializer implementation<C extends OxmClassBase,F extends MatchField> void registerMatchEntrySerializer(MatchEntrySerializerKey<C,F> key, OFGeneralSerializer serializer)
C
- oxm typeF
- match field typekey
- used for serializer lookupserializer
- serializer implementationvoid registerExperimenterMessageSerializer(ExperimenterIdSerializerKey<? extends ExperimenterDataOfChoice> key, OFSerializer<? extends ExperimenterDataOfChoice> serializer)
key
- used for serializer lookupserializer
- serializer implementationvoid registerMultipartRequestSerializer(ExperimenterIdSerializerKey<? extends ExperimenterDataOfChoice> key, OFSerializer<? extends ExperimenterDataOfChoice> serializer)
key
- used for serializer lookupserializer
- serializer implementationvoid registerMultipartRequestTFSerializer(ExperimenterIdSerializerKey<TableFeatureProperties> key, OFGeneralSerializer serializer)
key
- used for serializer lookupserializer
- serializer implementation@Deprecated void registerMeterBandSerializer(ExperimenterIdSerializerKey<MeterBandExperimenterCase> key, OFSerializer<MeterBandExperimenterCase> serializer)
key
- used for serializer lookupserializer
- serializer implementationvoid registerMeterBandSerializer(ExperimenterIdMeterSubTypeSerializerKey<MeterBandExperimenterCase> key, OFSerializer<MeterBandExperimenterCase> serializer)
key
- used for serializer lookupserializer
- serializer implementationCopyright © 2020 OpenDaylight. All rights reserved.