Class ExtensionConverterManagerImpl
java.lang.Object
org.opendaylight.openflowplugin.openflow.md.core.extension.ExtensionConverterManagerImpl
- All Implemented Interfaces:
ExtensionConverterManager
,ExtensionConverterProvider
,ExtensionConverterRegistrator
Simple map-based registration engine implementation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<F extends org.opendaylight.yangtools.binding.DataContainer,
P extends AugmentationPath>
ConvertorActionFromOFJava<F, P> getActionConverter
(MessageTypeKey<?> key) Lookup converter.<F extends org.opendaylight.yangtools.binding.DataContainer,
P extends AugmentationPath>
ConvertorFromOFJava<F, P> getConverter
(MessageTypeKey<?> key) Lookup converter.<F extends org.opendaylight.yangtools.binding.DataContainer>
ConvertorToOFJava<F> getConverter
(ConverterExtensionKey<?> key) Lookup converter.<F extends Action,
T extends org.opendaylight.yangtools.binding.DataContainer>
ConvertorActionToOFJava<F, T> getConverter
(TypeVersionKey<F> key) Lookup converter.<F extends org.opendaylight.yangtools.binding.DataContainer,
P extends AugmentationPath>
ConvertorMessageFromOFJava<F, P> getMessageConverter
(MessageTypeKey<?> key) Lookup converter for experimenter message.<F extends ExperimenterMessageOfChoice,
T extends org.opendaylight.yangtools.binding.DataContainer, D extends ConvertorData>
ConverterMessageToOFJava<F, T, D> getMessageConverter
(TypeVersionKey<F> key) Lookup converter for experimenter message.org.opendaylight.yangtools.concepts.ObjectRegistration
<ConvertorActionFromOFJava<Action, ActionPath>> registerActionConvertor
(ActionSerializerKey<?> key, ConvertorActionFromOFJava<Action, ActionPath> convertor) Registers an action converter.org.opendaylight.yangtools.concepts.ObjectRegistration
<ConvertorActionToOFJava<Action, Action>> registerActionConvertor
(TypeVersionKey<? extends Action> key, ConvertorActionToOFJava<Action, Action> convertor) Registers an action converter.org.opendaylight.yangtools.concepts.ObjectRegistration
<ConvertorFromOFJava<MatchEntry, MatchPath>> registerMatchConvertor
(MatchEntrySerializerKey<? extends OxmClassBase, ? extends MatchField> key, ConvertorFromOFJava<MatchEntry, MatchPath> convertor) org.opendaylight.yangtools.concepts.ObjectRegistration
<ConvertorToOFJava<MatchEntry>> registerMatchConvertor
(ConverterExtensionKey<? extends ExtensionKey> key, ConvertorToOFJava<MatchEntry> convertor) <I extends ExperimenterDataOfChoice>
org.opendaylight.yangtools.concepts.ObjectRegistration<ConvertorMessageFromOFJava<I, MessagePath>> registerMessageConvertor
(MessageTypeKey<?> key, ConvertorMessageFromOFJava<I, MessagePath> convertor) Registers a message converter.<I extends ExperimenterMessageOfChoice,
O extends org.opendaylight.yangtools.binding.DataContainer, D extends ConvertorData>
org.opendaylight.yangtools.concepts.ObjectRegistration<ConverterMessageToOFJava<I, O, D>> registerMessageConvertor
(TypeVersionKey<I> key, ConverterMessageToOFJava<I, O, D> convertor) Registers a message converter.void
unregister
(MessageTypeKey<?> key, ConvertorActionFromOFJava<?, ?> converter) Cancel registration of given converter.void
unregister
(MessageTypeKey<?> key, ConvertorFromOFJava<?, ?> converter) Cancel registration of given converter.void
unregister
(MessageTypeKey<?> key, ConvertorMessageFromOFJava<?, ?> converter) Cancel registration of given converter.void
unregister
(ConverterExtensionKey<?> key, ConvertorToOFJava<?> converter) Cancel registration of given converter.void
unregister
(TypeVersionKey<?> key, ConverterMessageToOFJava<?, ?, ?> converter) Cancel registration of given converter.void
unregister
(TypeVersionKey<? extends Action> key, ConvertorActionToOFJava<?, ?> converter) Cancel registration of given converter.
-
Constructor Details
-
ExtensionConverterManagerImpl
public ExtensionConverterManagerImpl()Default constructor.
-
-
Method Details
-
unregister
Cancel registration of given converter.- Parameters:
key
- message keyconverter
- extension convertor
-
unregister
public void unregister(TypeVersionKey<? extends Action> key, ConvertorActionToOFJava<?, ?> converter) Cancel registration of given converter.- Parameters:
key
- message keyconverter
- extension convertor
-
unregister
Cancel registration of given converter.- Parameters:
key
- message keyconverter
- extension convertor
-
unregister
Cancel registration of given converter.- Parameters:
key
- message keyconverter
- extension convertor
-
unregister
Cancel registration of given converter.- Parameters:
key
- message keyconverter
- extension convertor
-
unregister
Cancel registration of given converter.- Parameters:
key
- message keyconverter
- extension convertor
-
getConverter
public <F extends org.opendaylight.yangtools.binding.DataContainer> ConvertorToOFJava<F> getConverter(ConverterExtensionKey<?> key) Description copied from interface:ExtensionConverterProvider
Lookup converter.- Specified by:
getConverter
in interfaceExtensionConverterProvider
- Type Parameters:
F
- type of parameter- Parameters:
key
- the converter extension key- Returns:
- found converter
-
getConverter
public <F extends Action,T extends org.opendaylight.yangtools.binding.DataContainer> ConvertorActionToOFJava<F,T> getConverter(TypeVersionKey<F> key) Description copied from interface:ExtensionConverterProvider
Lookup converter.- Specified by:
getConverter
in interfaceExtensionConverterProvider
- Type Parameters:
F
- ActiontypeT
- datacontainer- Parameters:
key
- the type version key- Returns:
- found converter
-
getConverter
public <F extends org.opendaylight.yangtools.binding.DataContainer,P extends AugmentationPath> ConvertorFromOFJava<F,P> getConverter(MessageTypeKey<?> key) Description copied from interface:ExtensionConverterProvider
Lookup converter.- Specified by:
getConverter
in interfaceExtensionConverterProvider
- Type Parameters:
F
- type of parameter for getConverterP
- augmentationPath- Parameters:
key
- the message type key- Returns:
- found converter
-
getActionConverter
public <F extends org.opendaylight.yangtools.binding.DataContainer,P extends AugmentationPath> ConvertorActionFromOFJava<F,P> getActionConverter(MessageTypeKey<?> key) Description copied from interface:ExtensionConverterProvider
Lookup converter. TODO: this method should be compatible withExtensionConverterProvider.getConverter(MessageTypeKey)
after matches are migrated to similar structure- Specified by:
getActionConverter
in interfaceExtensionConverterProvider
- Type Parameters:
F
- DataContainerP
- AugmentationPath- Parameters:
key
- the message type key- Returns:
- found converter
-
registerActionConvertor
public org.opendaylight.yangtools.concepts.ObjectRegistration<ConvertorActionToOFJava<Action,Action>> registerActionConvertor(TypeVersionKey<? extends Action> key, ConvertorActionToOFJava<Action, Action> convertor) Description copied from interface:ExtensionConverterRegistrator
Registers an action converter.- Specified by:
registerActionConvertor
in interfaceExtensionConverterRegistrator
- Parameters:
key
- action case type + ofp-versionconvertor
- the converter- Returns:
- closable registration
-
registerActionConvertor
public org.opendaylight.yangtools.concepts.ObjectRegistration<ConvertorActionFromOFJava<Action,ActionPath>> registerActionConvertor(ActionSerializerKey<?> key, ConvertorActionFromOFJava<Action, ActionPath> convertor) Description copied from interface:ExtensionConverterRegistrator
Registers an action converter.- Specified by:
registerActionConvertor
in interfaceExtensionConverterRegistrator
- Parameters:
key
- actionSubType, action type (Experimenter), experimenterId, versionconvertor
- the converter- Returns:
- closable registration
-
registerMatchConvertor
public org.opendaylight.yangtools.concepts.ObjectRegistration<ConvertorToOFJava<MatchEntry>> registerMatchConvertor(ConverterExtensionKey<? extends ExtensionKey> key, ConvertorToOFJava<MatchEntry> convertor) - Specified by:
registerMatchConvertor
in interfaceExtensionConverterRegistrator
-
registerMatchConvertor
public org.opendaylight.yangtools.concepts.ObjectRegistration<ConvertorFromOFJava<MatchEntry,MatchPath>> registerMatchConvertor(MatchEntrySerializerKey<? extends OxmClassBase, ? extends MatchField> key, ConvertorFromOFJava<MatchEntry, MatchPath> convertor) - Specified by:
registerMatchConvertor
in interfaceExtensionConverterRegistrator
-
registerMessageConvertor
public <I extends ExperimenterMessageOfChoice,O extends org.opendaylight.yangtools.binding.DataContainer, org.opendaylight.yangtools.concepts.ObjectRegistration<ConverterMessageToOFJava<I,D extends ConvertorData> O, registerMessageConvertorD>> (TypeVersionKey<I> key, ConverterMessageToOFJava<I, O, D> convertor) Description copied from interface:ExtensionConverterRegistrator
Registers a message converter.- Specified by:
registerMessageConvertor
in interfaceExtensionConverterRegistrator
- Type Parameters:
I
- experimenterMessageOfChoiceO
- DataContainerD
- ConvertorData- Parameters:
key
- consists of: experimenter type, versionconvertor
- TO OFJava (suitable for both: symmetric and multipart)- Returns:
- closeable registration
-
registerMessageConvertor
public <I extends ExperimenterDataOfChoice> org.opendaylight.yangtools.concepts.ObjectRegistration<ConvertorMessageFromOFJava<I,MessagePath>> registerMessageConvertor(MessageTypeKey<?> key, ConvertorMessageFromOFJava<I, MessagePath> convertor) Description copied from interface:ExtensionConverterRegistrator
Registers a message converter.- Specified by:
registerMessageConvertor
in interfaceExtensionConverterRegistrator
- Type Parameters:
I
- experimenterMessageOfChoice- Parameters:
key
- consists of: experimenter type, versionconvertor
- FROM OFJava (suitable for both: symmetric and multipart)- Returns:
- closeable registration
-
getMessageConverter
public <F extends ExperimenterMessageOfChoice,T extends org.opendaylight.yangtools.binding.DataContainer, ConverterMessageToOFJava<F,D extends ConvertorData> T, getMessageConverterD> (TypeVersionKey<F> key) Description copied from interface:ExtensionConverterProvider
Lookup converter for experimenter message.- Specified by:
getMessageConverter
in interfaceExtensionConverterProvider
- Type Parameters:
F
- ExperimenterMessageOfChoiceT
- DataContainerD
- DataConvertor- Parameters:
key
- the type version key- Returns:
- found converter
-
getMessageConverter
public <F extends org.opendaylight.yangtools.binding.DataContainer,P extends AugmentationPath> ConvertorMessageFromOFJava<F,P> getMessageConverter(MessageTypeKey<?> key) Description copied from interface:ExtensionConverterProvider
Lookup converter for experimenter message.- Specified by:
getMessageConverter
in interfaceExtensionConverterProvider
- Type Parameters:
F
- DataContainerP
- AugmentationPath- Parameters:
key
- the message type key- Returns:
- found converter
-