[SDFAB-359] Allow purging flows, groups and meters by device and application ID
Change-Id: I5e507d230789979ac997dbc99697fa0483363f70
(cherry picked from commit cfd774018c0ed926873b1e171c106217cb2ac568)
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 2e632ed..811b418 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
@@ -15,6 +15,7 @@
*/
package org.onosproject.net.meter;
+import org.onosproject.core.ApplicationId;
import org.onosproject.net.DeviceId;
import org.onosproject.store.Store;
@@ -196,9 +197,19 @@
/**
* Removes all meters of given device from store.
+ * This API is typically used when the device is offline.
*
* @param deviceId the device id
*/
void purgeMeter(DeviceId deviceId);
+ /**
+ * Removes all meters of given device and for the given application from store.
+ * This API is typically used when the device is offline.
+ *
+ * @param deviceId the device id
+ * @param appId the application id
+ */
+ void purgeMeters(DeviceId deviceId, ApplicationId appId);
+
}