commit | 6173e2cbf1172965f05d1a0a42bc34ac75c022b0 | [log] [tgz] |
---|---|---|
author | Madan Jampani <madan.jampani@gmail.com> | Thu Feb 04 11:12:22 2016 -0800 |
committer | Madan Jampani <madan.jampani@gmail.com> | Thu Feb 04 11:12:51 2016 -0800 |
tree | 220b3a74de6aa232232eb5e46a0a2ba3a5249a7d | |
parent | 3b89e8c3cd33daaaecd7c2787b284fbda4577dc2 [diff] |
Use updated AtomicCounterBuilder API Change-Id: I4e61615e4e52398db1f82eb7db747e89b4a210cd
diff --git a/ecord/co/src/main/java/org/onosproject/ecord/co/BigSwitchManager.java b/ecord/co/src/main/java/org/onosproject/ecord/co/BigSwitchManager.java index 64371ee..5a4f5d8 100644 --- a/ecord/co/src/main/java/org/onosproject/ecord/co/BigSwitchManager.java +++ b/ecord/co/src/main/java/org/onosproject/ecord/co/BigSwitchManager.java
@@ -100,7 +100,8 @@ portCounter = storageService.atomicCounterBuilder() .withName(PORT_COUNTER) .withMeteringDisabled() - .build(); + .build() + .asAtomicCounter(); eventDispatcher.addSink(BigSwitchEvent.class, listenerRegistry); //portCounter.compareAndSet(0, 1); // Start counting from 1, doesn't work?? buildPorts();