Move stats caching to FM StatisticsManager
[controller.git] / opendaylight / protocol_plugins / openflow / src / main / java / org / opendaylight / controller / protocol_plugin / openflow / internal / DescStatisticsConverter.java
index ffd5fd4315747e40c7bf16b298c98f7c1bbd34eb..28c3dd6b4f7b0df028291dfa9d8d481201806086 100644 (file)
@@ -31,6 +31,10 @@ public class DescStatisticsConverter {
         this.ofDesc = (statsList == null || statsList.isEmpty())?
                 null : (OFDescriptionStatistics) statsList.get(0);
     }
+    public DescStatisticsConverter(OFDescriptionStatistics desc) {
+        this.hwDesc = null;
+        this.ofDesc = desc;
+    }
 
     public NodeDescription getHwDescription() {
         if (hwDesc == null && ofDesc != null) {