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
Constructors Constructor Description FlowInstructionResponseConvertor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instructions
convert(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
-
-
-
-
Method Detail
-
getTypes
public Collection<Class<?>> 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
public Instructions convert(List<Instruction> source, VersionConvertorData data)
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
-
-