Move flow statistics update handling
[controller.git] / opendaylight / md-sal / statistics-manager / src / main / java / org / opendaylight / controller / md / statistics / manager / StatisticsProvider.java
index 353c3336cfdb490070c1e02e222dac8fef3f5790..1269c1c6d8287fda41ec1fce515895e32fa50abd 100644 (file)
@@ -448,7 +448,15 @@ public class StatisticsProvider implements AutoCloseable {
 
     }
 
-    public final NodeStatisticsAger getStatisticsAger(final NodeId nodeId) {
+    /**
+     * Get the handler for a particular node.
+     *
+     * @param nodeId source node
+     * @return Node statistics handler for that node. Null if the statistics should
+     *         not handled.
+     */
+    public final NodeStatisticsAger getStatisticsHandler(final NodeId nodeId) {
+        Preconditions.checkNotNull(nodeId);
         NodeStatisticsAger ager = statisticsCache.get(nodeId);
         if (ager == null) {
             ager = new NodeStatisticsAger(this, new NodeKey(nodeId));