Class BundleAddMessageConverter
java.lang.Object
org.opendaylight.openflowplugin.extension.onf.converter.BundleAddMessageConverter
- All Implemented Interfaces:
ConverterMessageToOFJava<BundleAddMessageSal,
,BundleAddMessageOnf, ExtensionConvertorData> ConvertorMessageFromOFJava<BundleAddMessageOnf,
MessagePath>
public class BundleAddMessageConverter
extends Object
implements ConverterMessageToOFJava<BundleAddMessageSal,BundleAddMessageOnf,ExtensionConvertorData>, ConvertorMessageFromOFJava<BundleAddMessageOnf,MessagePath>
Converter for BundleAddMessage messages (ONF approved extension #230).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(BundleAddMessageSal experimenterMessageCase, ExtensionConvertorData extensionData) Converts a message to MD-SAL model.convert
(BundleAddMessageOnf input, MessagePath path) Convert OF model to MD-SAL model.Returns the corresponding experimenter id (vendor id).org.opendaylight.yangtools.yang.common.Uint32
getType()
Returns the corresponding experimenter message type.
-
Constructor Details
-
BundleAddMessageConverter
public BundleAddMessageConverter()
-
-
Method Details
-
convert
public BundleAddMessageOnf convert(BundleAddMessageSal experimenterMessageCase, ExtensionConvertorData extensionData) throws ConversionException Description copied from interface:ConverterMessageToOFJava
Converts a message to MD-SAL model.- Specified by:
convert
in interfaceConverterMessageToOFJava<BundleAddMessageSal,
BundleAddMessageOnf, ExtensionConvertorData> - Parameters:
experimenterMessageCase
- where is vendor's augmentationextensionData
- which contains the Xid and datapathId- Returns:
- message converted to OFJava-API
- Throws:
ConversionException
- if given argument is none of valid types
-
convert
Description copied from interface:ConvertorMessageFromOFJava
Convert OF model to MD-SAL model.- Specified by:
convert
in interfaceConvertorMessageFromOFJava<BundleAddMessageOnf,
MessagePath> - Parameters:
input
- OF modelpath
- in yang schema where a converted value has to be augmented- Returns:
- message converted to MD-SAL and its type
-
getExperimenterId
Description copied from interface:ConverterMessageToOFJava
Returns the corresponding experimenter id (vendor id).- Specified by:
getExperimenterId
in interfaceConverterMessageToOFJava<BundleAddMessageSal,
BundleAddMessageOnf, ExtensionConvertorData> - Returns:
- experimenter id
-
getType
public org.opendaylight.yangtools.yang.common.Uint32 getType()Description copied from interface:ConverterMessageToOFJava
Returns the corresponding experimenter message type.- Specified by:
getType
in interfaceConverterMessageToOFJava<BundleAddMessageSal,
BundleAddMessageOnf, ExtensionConvertorData> - Returns:
- experimenter message type.
-