Search in sources :

Example 1 with MultipartRequestFlowStatsSerializer

use of org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestFlowStatsSerializer 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());
}
Also used : MultipartRequestGroupFeatures(org.opendaylight.yang.gen.v1.urn.opendaylight.group.statistics.rev131111.multipart.request.multipart.request.body.MultipartRequestGroupFeatures) MultipartRequestQueueStatsSerializer(org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestQueueStatsSerializer) MultipartRequestPortStats(org.opendaylight.yang.gen.v1.urn.opendaylight.port.statistics.rev131214.multipart.request.multipart.request.body.MultipartRequestPortStats) MultipartRequestFlowTableStatsSerializer(org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestFlowTableStatsSerializer) MultipartRequestMeterConfigSerializer(org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestMeterConfigSerializer) Consumer(java.util.function.Consumer) MultipartRequestFlowAggregateStatsSerializer(org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestFlowAggregateStatsSerializer) MultipartRequestExperimenter(org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.experimenter.types.rev151020.multipart.request.multipart.request.body.MultipartRequestExperimenter) MultipartRequestFlowTableStats(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.table.statistics.rev131215.multipart.request.multipart.request.body.MultipartRequestFlowTableStats) MultipartRequestGroupFeaturesSerializer(org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestGroupFeaturesSerializer) MultipartRequestBody(org.opendaylight.yang.gen.v1.urn.opendaylight.multipart.types.rev170112.multipart.request.MultipartRequestBody) MultipartRequestExperimenterSerializer(org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestExperimenterSerializer) MultipartRequestPortStatsSerializer(org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestPortStatsSerializer) MultipartRequestMeterConfig(org.opendaylight.yang.gen.v1.urn.opendaylight.meter.statistics.rev131111.multipart.request.multipart.request.body.MultipartRequestMeterConfig) MultipartRequestTableFeaturesSerializer(org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestTableFeaturesSerializer) MultipartRequestMeterFeaturesSerializer(org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestMeterFeaturesSerializer) MultipartRequestDescSerializer(org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestDescSerializer) MultipartRequestPortDesc(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.port.rev130925.multipart.request.multipart.request.body.MultipartRequestPortDesc) MultipartRequestDesc(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.multipart.request.multipart.request.body.MultipartRequestDesc) MultipartRequestGroupStats(org.opendaylight.yang.gen.v1.urn.opendaylight.group.statistics.rev131111.multipart.request.multipart.request.body.MultipartRequestGroupStats) MultipartRequestGroupDescSerializer(org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestGroupDescSerializer) MultipartRequestMeterStats(org.opendaylight.yang.gen.v1.urn.opendaylight.meter.statistics.rev131111.multipart.request.multipart.request.body.MultipartRequestMeterStats) MultipartRequestPortDescSerializer(org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestPortDescSerializer) MultipartRequestFlowStatsSerializer(org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestFlowStatsSerializer) MultipartRequestGroupDesc(org.opendaylight.yang.gen.v1.urn.opendaylight.group.statistics.rev131111.multipart.request.multipart.request.body.MultipartRequestGroupDesc) MultipartRequestMeterFeatures(org.opendaylight.yang.gen.v1.urn.opendaylight.meter.statistics.rev131111.multipart.request.multipart.request.body.MultipartRequestMeterFeatures) MultipartRequestQueueStats(org.opendaylight.yang.gen.v1.urn.opendaylight.queue.statistics.rev131216.multipart.request.multipart.request.body.MultipartRequestQueueStats) MultipartRequestFlowStats(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.multipart.request.multipart.request.body.MultipartRequestFlowStats) MultipartRequestGroupStatsSerializer(org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestGroupStatsSerializer) MultipartRequestMeterStatsSerializer(org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestMeterStatsSerializer) MultipartRequestTableFeatures(org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.multipart.request.multipart.request.body.MultipartRequestTableFeatures) MultipartRequestFlowAggregateStats(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.multipart.request.multipart.request.body.MultipartRequestFlowAggregateStats)

Aggregations

Consumer (java.util.function.Consumer)1 MultipartRequestDescSerializer (org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestDescSerializer)1 MultipartRequestExperimenterSerializer (org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestExperimenterSerializer)1 MultipartRequestFlowAggregateStatsSerializer (org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestFlowAggregateStatsSerializer)1 MultipartRequestFlowStatsSerializer (org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestFlowStatsSerializer)1 MultipartRequestFlowTableStatsSerializer (org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestFlowTableStatsSerializer)1 MultipartRequestGroupDescSerializer (org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestGroupDescSerializer)1 MultipartRequestGroupFeaturesSerializer (org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestGroupFeaturesSerializer)1 MultipartRequestGroupStatsSerializer (org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestGroupStatsSerializer)1 MultipartRequestMeterConfigSerializer (org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestMeterConfigSerializer)1 MultipartRequestMeterFeaturesSerializer (org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestMeterFeaturesSerializer)1 MultipartRequestMeterStatsSerializer (org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestMeterStatsSerializer)1 MultipartRequestPortDescSerializer (org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestPortDescSerializer)1 MultipartRequestPortStatsSerializer (org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestPortStatsSerializer)1 MultipartRequestQueueStatsSerializer (org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestQueueStatsSerializer)1 MultipartRequestTableFeaturesSerializer (org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestTableFeaturesSerializer)1 MultipartRequestDesc (org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.multipart.request.multipart.request.body.MultipartRequestDesc)1 MultipartRequestFlowTableStats (org.opendaylight.yang.gen.v1.urn.opendaylight.flow.table.statistics.rev131215.multipart.request.multipart.request.body.MultipartRequestFlowTableStats)1 MultipartRequestPortDesc (org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.port.rev130925.multipart.request.multipart.request.body.MultipartRequestPortDesc)1 MultipartRequestFlowAggregateStats (org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.multipart.request.multipart.request.body.MultipartRequestFlowAggregateStats)1