use of org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestFlowAggregateStatsSerializer in project openflowplugin by opendaylight.
the class MultipartSerializerInjector method injectSerializers.
/**
* Injects multipart serializers into provided
* {@link org.opendaylight.openflowjava.protocol.api.extensibility.SerializerExtensionProvider}.
*
* @param provider OpenflowJava serializer extension provider
*/
static void injectSerializers(final SerializerExtensionProvider provider) {
// Inject new message serializers here using injector created by createInjector method
final Function<Class<? extends MultipartRequestBody>, Consumer<OFSerializer<? extends MultipartRequestBody>>> injector = createInjector(provider, EncodeConstants.OF13_VERSION_ID);
MultipartMatchFieldSerializerInjector.injectSerializers(provider);
MultipartTableFeaturesSerializerInjector.injectSerializers(provider);
injector.apply(MultipartRequestDesc.class).accept(new MultipartRequestDescSerializer());
injector.apply(MultipartRequestFlowTableStats.class).accept(new MultipartRequestFlowTableStatsSerializer());
injector.apply(MultipartRequestGroupDesc.class).accept(new MultipartRequestGroupDescSerializer());
injector.apply(MultipartRequestGroupFeatures.class).accept(new MultipartRequestGroupFeaturesSerializer());
injector.apply(MultipartRequestGroupStats.class).accept(new MultipartRequestGroupStatsSerializer());
injector.apply(MultipartRequestMeterFeatures.class).accept(new MultipartRequestMeterFeaturesSerializer());
injector.apply(MultipartRequestMeterStats.class).accept(new MultipartRequestMeterStatsSerializer());
injector.apply(MultipartRequestMeterConfig.class).accept(new MultipartRequestMeterConfigSerializer());
injector.apply(MultipartRequestPortDesc.class).accept(new MultipartRequestPortDescSerializer());
injector.apply(MultipartRequestPortStats.class).accept(new MultipartRequestPortStatsSerializer());
injector.apply(MultipartRequestQueueStats.class).accept(new MultipartRequestQueueStatsSerializer());
injector.apply(MultipartRequestFlowStats.class).accept(new MultipartRequestFlowStatsSerializer());
injector.apply(MultipartRequestFlowAggregateStats.class).accept(new MultipartRequestFlowAggregateStatsSerializer());
injector.apply(MultipartRequestExperimenter.class).accept(new MultipartRequestExperimenterSerializer());
injector.apply(MultipartRequestTableFeatures.class).accept(new MultipartRequestTableFeaturesSerializer());
}
Aggregations