JConsole support for statistics collection
[openflowjava.git] / openflow-protocol-spi / src / main / java / org / opendaylight / openflowjava / protocol / spi / statistics / StatisticsHandler.java
diff --git a/openflow-protocol-spi/src/main/java/org/opendaylight/openflowjava/protocol/spi/statistics/StatisticsHandler.java b/openflow-protocol-spi/src/main/java/org/opendaylight/openflowjava/protocol/spi/statistics/StatisticsHandler.java
new file mode 100644 (file)
index 0000000..c5d7a6a
--- /dev/null
@@ -0,0 +1,28 @@
+/*\r
+ * Copyright (c) 2014 Pantheon Technologies s.r.o. and others. All rights reserved.\r
+ *\r
+ * This program and the accompanying materials are made available under the\r
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
+ * and is available at http://www.eclipse.org/legal/epl-v10.html\r
+ */\r
+\r
+package org.opendaylight.openflowjava.protocol.spi.statistics;\r
+\r
+/**\r
+ * Used for JConsole service\r
+ * \r
+ * @author michal.polkorab\r
+ */\r
+public interface StatisticsHandler {\r
+\r
+    /**\r
+     * Resets all counters\r
+     */\r
+    public void resetCounters();\r
+\r
+    /**\r
+     * Prints statistics\r
+     * @return statistics\r
+     */\r
+    public String printStatistics();\r
+}
\ No newline at end of file