Class FlowInstructionResponseConvertor
java.lang.Object
org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.common.Convertor<List<Instruction>,Instructions,VersionConvertorData>
org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.flow.FlowInstructionResponseConvertor
public final class FlowInstructionResponseConvertor
extends Convertor<List<Instruction>,Instructions,VersionConvertorData>
Converts Openflow 1.3+ specific instructions to MD-SAL format flow instruction.
Example usage:
VersionConvertorData data = new VersionConvertorData(version);
Optional<Instructions> salFlowInstruction = convertorManager.convert(ofFlowInstructions, data);
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(List<Instruction> 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
-
Constructor Details
-
FlowInstructionResponseConvertor
public FlowInstructionResponseConvertor()
-
-
Method Details
-
getTypes
Description copied from class:Convertor
Gets type of convertor, used inConvertorManager
.- Specified by:
getTypes
in classConvertor<List<Instruction>,
Instructions, VersionConvertorData> - Returns:
- the type of convertor
-
convert
Description copied from class:Convertor
Converts source to result.- Specified by:
convert
in classConvertor<List<Instruction>,
Instructions, VersionConvertorData> - Parameters:
source
- sourcedata
- convertor data- Returns:
- converted source
-