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
Constructors Constructor Description BundleAddMessageConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BundleAddMessageOnf
convert(BundleAddMessageSal experimenterMessageCase, ExtensionConvertorData extensionData)
Converts a message to MD-SAL model.BundleAddMessageSal
convert(BundleAddMessageOnf input, MessagePath path)
Convert OF model to MD-SAL model.ExperimenterId
getExperimenterId()
Returns the corresponding experimenter id (vendor id).org.opendaylight.yangtools.yang.common.Uint32
getType()
Returns the corresponding experimenter message type.
-
-
-
Method Detail
-
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
public BundleAddMessageSal convert(BundleAddMessageOnf input, MessagePath path)
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
public ExperimenterId 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.
-
-