Class TableFeaturesResponseConvertor
- java.lang.Object
-
- org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.common.Convertor<MultipartReplyTableFeatures,List<TableFeatures>,VersionConvertorData>
-
- org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.TableFeaturesResponseConvertor
-
public class TableFeaturesResponseConvertor extends Convertor<MultipartReplyTableFeatures,List<TableFeatures>,VersionConvertorData>
Converts a OF library table features into the MD-SAL library table features.Example usage:
VersionConvertorData data = new VersionConvertorData(version); Optional<List<TableFeatures>> salFeatures = convertorManager.convert(ofTableFeatures, data);
-
-
Constructor Summary
Constructors Constructor Description TableFeaturesResponseConvertor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TableFeatures>
convert(MultipartReplyTableFeatures source, VersionConvertorData data)
Converts source to result.Collection<Class<?>>
getTypes()
Gets type of convertor, used inConvertorManager
.-
Methods inherited from class org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.common.Convertor
getConvertorExecutor, setConvertorExecutor
-
-
-
-
Method Detail
-
getTypes
public Collection<Class<?>> getTypes()
Description copied from class:Convertor
Gets type of convertor, used inConvertorManager
.- Specified by:
getTypes
in classConvertor<MultipartReplyTableFeatures,List<TableFeatures>,VersionConvertorData>
- Returns:
- the type of convertor
-
convert
public List<TableFeatures> convert(MultipartReplyTableFeatures source, VersionConvertorData data)
Description copied from class:Convertor
Converts source to result.- Specified by:
convert
in classConvertor<MultipartReplyTableFeatures,List<TableFeatures>,VersionConvertorData>
- Parameters:
source
- sourcedata
- convertor data- Returns:
- converted source
-
-