Performacne improvements via adding a netty-based openflowj and openflow plugin;...
[controller.git] / opendaylight / protocol_plugins / openflow_netty / src / main / java / org / opendaylight / controller / protocol_plugin / openflow / IStatisticsServiceShimListener.java
diff --git a/opendaylight/protocol_plugins/openflow_netty/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/IStatisticsServiceShimListener.java b/opendaylight/protocol_plugins/openflow_netty/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/IStatisticsServiceShimListener.java
new file mode 100644 (file)
index 0000000..1105239
--- /dev/null
@@ -0,0 +1,43 @@
+package org.opendaylight.controller.protocol_plugin.openflow;
+
+import java.util.List;
+
+import org.openflow.protocol.statistics.OFStatistics;
+
+/**
+ * @file   IStatisticsShimListener.java
+ *
+ * @brief  Statistics notifications provided by SAL toward the application
+ *
+ * For example an application that wants to keep up to date with the
+ * updates coming from SAL it will register in the OSGi service
+ * registry this interface (on a per-container base) and SAL will call it
+ * providing the update
+ */
+
+/**
+ * Statistics notifications provided by SAL toward the application
+ *
+ */
+public interface IStatisticsServiceShimListener {
+
+    /**
+     * Called to update statistics
+     *
+     * @param
+     * @param
+     * @param
+     */
+    public void flowStatisticsUpdate(Long switchId,
+                        List<OFStatistics> value, String containerName);
+
+    public void descStatisticsUpdate(Long switchId,
+                        List<OFStatistics> value, String containerName);
+
+    public void portStatisticsUpdate(Long switchId,
+                        List<OFStatistics> value, String containerName);
+
+    public void flowTableStatisticsUpdate(Long switchId,
+                        List<OFStatistics> value, String containerName);
+
+}