Added the Topology event key to the Performance Monitoring tag.
diff --git a/src/main/java/net/onrc/onos/datagrid/HazelcastDatagrid.java b/src/main/java/net/onrc/onos/datagrid/HazelcastDatagrid.java
index 0abd854..b76aa58 100644
--- a/src/main/java/net/onrc/onos/datagrid/HazelcastDatagrid.java
+++ b/src/main/java/net/onrc/onos/datagrid/HazelcastDatagrid.java
@@ -450,7 +450,8 @@
*/
@Override
public void entryRemoved(EntryEvent<String, byte[]> event) {
- PerformanceMonitor.start("TopologyEntryRemoved.NotificationReceived");
+ String tag = "TopologyEntryRemoved.NotificationReceived." + event.getKey();
+ PerformanceMonitor.start(tag);
byte[] valueBytes = event.getValue();
//
@@ -462,8 +463,8 @@
kryo.readObject(input, TopologyElement.class);
kryoFactory.deleteKryo(kryo);
flowEventHandlerService.notificationRecvTopologyElementRemoved(topologyElement);
- PerformanceMonitor.stop("TopologyEntryRemoved.NotificationReceived");
- PerformanceMonitor.report("TopologyEntryRemoved.NotificationReceived");
+ PerformanceMonitor.stop(tag);
+ PerformanceMonitor.report(tag);
}
/**