X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflowplugin%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fopenflowplugin%2Fopenflow%2Fmd%2Fcore%2Fsal%2Fconvertor%2FGroupDescStatsResponseConvertor.java;fp=openflowplugin%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fopenflowplugin%2Fopenflow%2Fmd%2Fcore%2Fsal%2Fconvertor%2FGroupDescStatsResponseConvertor.java;h=ffb0450e4b175fdd149e1b6ec74378934ba04ec9;hb=8339b1175433d51ad1ace15ad7084ec91535d169;hp=05cd849e6c5c4a51ac7e3565275e54d5a73e8c5d;hpb=dbd9b296ccaa0ea6782c5a419d55045ac469af4a;p=openflowplugin.git diff --git a/openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/GroupDescStatsResponseConvertor.java b/openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/GroupDescStatsResponseConvertor.java index 05cd849e6c..ffb0450e4b 100644 --- a/openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/GroupDescStatsResponseConvertor.java +++ b/openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/GroupDescStatsResponseConvertor.java @@ -9,11 +9,12 @@ package org.opendaylight.openflowplugin.openflow.md.core.sal.convertor; import java.util.ArrayList; +import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Optional; +import java.util.Set; import org.opendaylight.openflowplugin.extension.api.path.ActionPath; -import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorManager; import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.action.data.ActionResponseConvertorData; import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.common.Convertor; import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.data.VersionConvertorData; @@ -46,6 +47,8 @@ import org.opendaylight.yangtools.yang.binding.DataContainer; */ public class GroupDescStatsResponseConvertor implements Convertor, List, VersionConvertorData> { + private static final Set> TYPES = Collections.singleton(GroupDesc.class); + private org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.group.Buckets toSALBucketsDesc(List bucketDescStats, short version) { final ActionResponseConvertorData data = new ActionResponseConvertorData(version); data.setActionPath(ActionPath.GROUPDESCSTATSUPDATED_GROUPDESCSTATS_BUCKETS_BUCKET_ACTION); @@ -96,8 +99,8 @@ public class GroupDescStatsResponseConvertor implements Convertor getType() { - return GroupDesc.class; + public Collection> getTypes() { + return TYPES; } @Override