Adding tests for meter service.
Change-Id: Ic220fdaa89b421661019f1a6ef23c7b02eef127c
diff --git a/core/api/src/main/java/org/onosproject/net/meter/MeterService.java b/core/api/src/main/java/org/onosproject/net/meter/MeterService.java
index 31aa17f..bdc90eb 100644
--- a/core/api/src/main/java/org/onosproject/net/meter/MeterService.java
+++ b/core/api/src/main/java/org/onosproject/net/meter/MeterService.java
@@ -30,23 +30,18 @@
/**
* Adds a meter to the system and performs it installation.
*
- * @param meter a meter.
+ * @param meter a meter
+ * @return a meter (with a meter id)
*/
- void addMeter(MeterOperation meter);
-
- /**
- * Updates a meter by adding statistic information to the meter.
- *
- * @param meter an updated meter
- */
- void updateMeter(MeterOperation meter);
+ Meter submit(MeterRequest meter);
/**
* Remove a meter from the system and the dataplane.
*
* @param meter a meter to remove
+ * @param meterId the meter id of the meter to remove.
*/
- void removeMeter(MeterOperation meter);
+ void withdraw(MeterRequest meter, MeterId meterId);
/**
* Fetch the meter by the meter id.
@@ -63,10 +58,4 @@
*/
Collection<Meter> getAllMeters();
- /**
- * Allocate a meter id which must be used to create the meter.
- *
- * @return a meter id
- */
- MeterId allocateMeterId();
}