Class BundleControlConverter
- java.lang.Object
-
- org.opendaylight.openflowplugin.extension.onf.converter.BundleControlConverter
-
- All Implemented Interfaces:
ConverterMessageToOFJava<BundleControlSal,BundleControlOnf,ExtensionConvertorData>
,ConvertorMessageFromOFJava<BundleControlOnf,MessagePath>
public class BundleControlConverter extends Object implements ConverterMessageToOFJava<BundleControlSal,BundleControlOnf,ExtensionConvertorData>, ConvertorMessageFromOFJava<BundleControlOnf,MessagePath>
Converter for BundleControl messages (ONF approved extension #230).
-
-
Constructor Summary
Constructors Constructor Description BundleControlConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BundleControlOnf
convert(BundleControlSal experimenterMessageCase, ExtensionConvertorData data)
Converts a message to MD-SAL model.BundleControlSal
convert(BundleControlOnf input, MessagePath path)
Convert OF model to MD-SAL model.ExperimenterId
getExperimenterId()
Returns the corresponding experimenter id (vendor id).long
getType()
Returns the corresponding experimenter message type.
-
-
-
Method Detail
-
convert
public BundleControlOnf convert(BundleControlSal experimenterMessageCase, ExtensionConvertorData data)
Description copied from interface:ConverterMessageToOFJava
Converts a message to MD-SAL model.- Specified by:
convert
in interfaceConverterMessageToOFJava<BundleControlSal,BundleControlOnf,ExtensionConvertorData>
- Parameters:
experimenterMessageCase
- where is vendor's augmentationdata
- which contains the Xid and datapathId- Returns:
- message converted to OFJava-API
-
convert
public BundleControlSal convert(BundleControlOnf input, MessagePath path)
Description copied from interface:ConvertorMessageFromOFJava
Convert OF model to MD-SAL model.- Specified by:
convert
in interfaceConvertorMessageFromOFJava<BundleControlOnf,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<BundleControlSal,BundleControlOnf,ExtensionConvertorData>
- Returns:
- experimenter id
-
getType
public long getType()
Description copied from interface:ConverterMessageToOFJava
Returns the corresponding experimenter message type.- Specified by:
getType
in interfaceConverterMessageToOFJava<BundleControlSal,BundleControlOnf,ExtensionConvertorData>
- Returns:
- experimenter message type.
-
-