use of org.opendaylight.openflowplugin.impl.translator.PacketReceivedTranslator in project openflowplugin by opendaylight.
the class TranslatorLibraryUtil method injectBasicTranslatorLibrary.
public static void injectBasicTranslatorLibrary(final TranslatorLibrarian librarian, final ConvertorExecutor convertorExecutor) {
final TranslatorLibrary basicTranslatorLibrary = new TranslatorLibraryBuilder().addTranslator(OF_13_TRANSLATOR_KEY_FACTORY.createTranslatorKey(PacketIn.class), new PacketReceivedTranslator(convertorExecutor)).addTranslator(OF_13_TRANSLATOR_KEY_FACTORY.createTranslatorKey(PortGrouping.class), new PortUpdateTranslator()).addTranslator(OF_13_TRANSLATOR_KEY_FACTORY.createTranslatorKey(MultipartReplyAggregateCase.class), new AggregatedFlowStatisticsTranslator()).addTranslator(OF_13_TRANSLATOR_KEY_FACTORY.createTranslatorKey(FlowRemoved.class), new FlowRemovedTranslator(convertorExecutor)).addTranslator(OF_10_TRANSLATOR_KEY_FACTORY.createTranslatorKey(PacketIn.class), new PacketReceivedTranslator(convertorExecutor)).addTranslator(OF_10_TRANSLATOR_KEY_FACTORY.createTranslatorKey(PortGrouping.class), new PortUpdateTranslator()).addTranslator(OF_10_TRANSLATOR_KEY_FACTORY.createTranslatorKey(MultipartReplyAggregateCase.class), new AggregatedFlowStatisticsTranslator()).addTranslator(OF_10_TRANSLATOR_KEY_FACTORY.createTranslatorKey(FlowRemoved.class), new FlowRemovedV10Translator(convertorExecutor)).build();
librarian.setTranslatorLibrary(basicTranslatorLibrary);
}
Aggregations