Class ActionConvertor
java.lang.Object
org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.common.Convertor<Collection<Action>,Collection<Action>,ActionConvertorData>
org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.action.ActionConvertor
public final class ActionConvertor
extends Convertor<Collection<Action>,Collection<Action>,ActionConvertorData>
Converts SAL actions into OF Library actions.
Example usage:
ActionConvertorData data = new ActionConvertorData(version);
data.setDatapathId(datapathId);
data.setIpProtocol(ipProtocol);
Optional<List<Action>> ofActions = convertorManager.convert(salActions, data);
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(Collection<Action> source, ActionConvertorData 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
-
ActionConvertor
public ActionConvertor()
-
-
Method Details
-
getTypes
Description copied from class:Convertor
Gets type of convertor, used inConvertorManager
.- Specified by:
getTypes
in classConvertor<Collection<Action>,
Collection<Action>, ActionConvertorData> - Returns:
- the type of convertor
-
convert
Description copied from class:Convertor
Converts source to result.- Specified by:
convert
in classConvertor<Collection<Action>,
Collection<Action>, ActionConvertorData> - Parameters:
source
- sourcedata
- convertor data- Returns:
- converted source
-