commit | d5714e09fd289436f2b13997eeb62ce8571b6310 | [log] [tgz] |
---|---|---|
author | Madan Jampani <madan@onlab.us> | Tue Apr 19 14:15:20 2016 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Tue Apr 19 21:37:35 2016 +0000 |
tree | 0724beed304216c85ac3dfb8fdef2ec185772154 | |
parent | 56423ba9bf0a5b65c8fa6d226f7b6ea0ee765051 [diff] |
New and direct StorageService method for creating an AtomicCounter Change-Id: I8c189584dde590842075bea7e03c4c8ecf8d72c2
diff --git a/core/store/dist/src/main/java/org/onosproject/store/flowobjective/impl/DistributedFlowObjectiveStore.java b/core/store/dist/src/main/java/org/onosproject/store/flowobjective/impl/DistributedFlowObjectiveStore.java index 9bd6383..5794f45 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/flowobjective/impl/DistributedFlowObjectiveStore.java +++ b/core/store/dist/src/main/java/org/onosproject/store/flowobjective/impl/DistributedFlowObjectiveStore.java
@@ -69,11 +69,7 @@ .build())) .build(); - nextIds = storageService.atomicCounterBuilder() - .withName("next-objective-counter") - .build() - .asAtomicCounter(); - + nextIds = storageService.getAtomicCounter("next-objective-counter"); log.info("Started"); }