MeterManager optimiziation. Use entryset instead of keyset avoiding some store access,
also add MeterStore getAllMeters(DeviceId).
Change-Id: I8dac9558cdb8b5c758e0e402cd0724c6cae16daf
diff --git a/core/api/src/main/java/org/onosproject/net/meter/MeterStore.java b/core/api/src/main/java/org/onosproject/net/meter/MeterStore.java
index a63d272..2dcb4ee 100644
--- a/core/api/src/main/java/org/onosproject/net/meter/MeterStore.java
+++ b/core/api/src/main/java/org/onosproject/net/meter/MeterStore.java
@@ -91,6 +91,15 @@
Collection<Meter> getAllMeters();
/**
+ * Returns all meters stored in the store for a
+ * precise device.
+ *
+ * @param deviceId the device to get the meter list from
+ * @return a collection of meters
+ */
+ Collection<Meter> getAllMeters(DeviceId deviceId);
+
+ /**
* Update the store by deleting the failed meter.
* Notifies the delegate that the meter failed to allow it
* to nofity the app.