Improved logging in ScenarioHandler
[openflowjava.git] / openflow-protocol-it / src / test / java / org / opendaylight / openflowjava / protocol / impl / integration / MockPlugin.java
index 3ba78a42be5baac6ae612ee057a444cc3cf11b1c..73d88fa5e9de8f7722a57364250563b81d13024c 100644 (file)
@@ -47,7 +47,8 @@ public class MockPlugin implements OpenflowProtocolListener, SwitchConnectionHan
     private ConnectionAdapter adapter;\r
     private SettableFuture<Void> finishedFuture;\r
     private int idleCounter = 0;\r
-    \r
+\r
+    /** Creates MockPlugin */\r
     public MockPlugin() {\r
         LOGGER.info("Creating MockPlugin");\r
         finishedFuture = SettableFuture.create();\r
@@ -182,6 +183,9 @@ public class MockPlugin implements OpenflowProtocolListener, SwitchConnectionHan
         LOGGER.debug("adapter: "+adapter);\r
     }\r
 \r
+    /**\r
+     * @return finishedFuture object\r
+     */\r
     public SettableFuture<Void> getFinishedFuture() {\r
         return finishedFuture;\r
     }\r
@@ -191,7 +195,10 @@ public class MockPlugin implements OpenflowProtocolListener, SwitchConnectionHan
         LOGGER.debug("switch status: "+notification.getInfo());\r
         idleCounter ++;\r
     }\r
-    \r
+\r
+    /**\r
+     * @return number of occured idleEvents\r
+     */\r
     public int getIdleCounter() {\r
         return idleCounter;\r
     }\r