correcting notification msgs for listener 44/3944/1
authorGaurav Bhagwani <gaurav.bhagwani@ericsson.com>
Fri, 27 Dec 2013 15:05:34 +0000 (20:35 +0530)
committerGaurav Bhagwani <gaurav.bhagwani@ericsson.com>
Fri, 27 Dec 2013 15:05:34 +0000 (20:35 +0530)
Signed-off-by: Gaurav Bhagwani <gaurav.bhagwani@ericsson.com>
test-provider/src/main/java/org/opendaylight/openflowplugin/test/OpenflowpluginTestCommandProvider.java

index 0a1301da4ca96ed643cd45d56f2e18b8e288c8f4..900fba885024035276b86dcd05e8d8de1daeebb3 100644 (file)
@@ -282,34 +282,42 @@ public class OpenflowpluginTestCommandProvider implements CommandProvider {
 
     final class PortEventListener implements OpendaylightInventoryListener {
 
+        List<NodeUpdated> nodeUpdated = new ArrayList<>();
+        List<NodeRemoved> nodeRemoved = new ArrayList<>();
+        List<NodeConnectorUpdated> nodeConnectorUpdated = new ArrayList<>();
+        List<NodeConnectorRemoved> nodeConnectorRemoved = new ArrayList<>();
+
         @Override
         public void onNodeConnectorRemoved(NodeConnectorRemoved notification) {
-            System.out.println("PortStatusMessage: NodeConnectorRemoved ...................");
+            System.out.println("NodeConnectorRemoved Notification ...................");
             System.out.println(notification.getNodeConnectorRef());
             System.out.println("----------------------------------------------------------------------");
+            nodeConnectorRemoved.add(notification);
         }
 
         @Override
         public void onNodeConnectorUpdated(NodeConnectorUpdated notification) {
-            System.out.println("PortStatusMessage: NodeConnectorUpdated ...................");
+            System.out.println("NodeConnectorUpdated Notification...................");
             System.out.println(notification.getNodeConnectorRef());
             System.out.println("----------------------------------------------------------------------");
+            nodeConnectorUpdated.add(notification);
         }
 
         @Override
         public void onNodeRemoved(NodeRemoved notification) {
-            System.out.println("PortStatusMessage: NodeConnectorUpdated ...................");
+            System.out.println("NodeConnectorUpdated Notification ...................");
             System.out.println(notification.getNodeRef());
             System.out.println("----------------------------------------------------------------------");
+            nodeRemoved.add(notification);
         }
 
         @Override
         public void onNodeUpdated(NodeUpdated notification) {
-            System.out.println("PortStatusMessage: NodeConnectorUpdated ...................");
+            System.out.println("NodeConnectorUpdated Notification ...................");
             System.out.println(notification.getNodeRef());
             System.out.println("----------------------------------------------------------------------");
+            nodeUpdated.add(notification);
         }
-
     }
 
     private InstanceIdentifier<Node> nodeBuilderToInstanceId(NodeBuilder node) {