alshabib

cleaning up some meter code

Change-Id: Ie901d51cf6ade2c497f90fadb093179404967d13
...@@ -18,6 +18,8 @@ package org.onosproject.net.meter; ...@@ -18,6 +18,8 @@ package org.onosproject.net.meter;
18 import com.google.common.base.Objects; 18 import com.google.common.base.Objects;
19 import org.onosproject.net.DeviceId; 19 import org.onosproject.net.DeviceId;
20 20
21 +import static com.google.common.base.MoreObjects.toStringHelper;
22 +
21 /** 23 /**
22 * A meter key represents a meter uniquely. 24 * A meter key represents a meter uniquely.
23 */ 25 */
...@@ -57,6 +59,13 @@ public final class MeterKey { ...@@ -57,6 +59,13 @@ public final class MeterKey {
57 return Objects.hashCode(deviceId, id); 59 return Objects.hashCode(deviceId, id);
58 } 60 }
59 61
62 + @Override
63 + public String toString() {
64 + return toStringHelper(this)
65 + .add("deviceId", deviceId)
66 + .add("meterId", id).toString();
67 + }
68 +
60 public static MeterKey key(DeviceId deviceId, MeterId id) { 69 public static MeterKey key(DeviceId deviceId, MeterId id) {
61 return new MeterKey(deviceId, id); 70 return new MeterKey(deviceId, id);
62 } 71 }
......
...@@ -80,9 +80,6 @@ public class MeterManager extends AbstractListenerProviderRegistry<MeterEvent, M ...@@ -80,9 +80,6 @@ public class MeterManager extends AbstractListenerProviderRegistry<MeterEvent, M
80 80
81 @Activate 81 @Activate
82 public void activate() { 82 public void activate() {
83 - /*meterIdCounter = storageService.atomicCounterBuilder()
84 - .withName(METERCOUNTERIDENTIFIER)
85 - .build();*/
86 83
87 store.setDelegate(delegate); 84 store.setDelegate(delegate);
88 85
......