commit | e17d3284ec75a77014196c28bbb174c5c99ce7b7 | [log] [tgz] |
---|---|---|
author | Madan Jampani <madan.jampani@gmail.com> | Wed Feb 03 15:30:57 2016 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Thu Feb 04 17:43:50 2016 +0000 |
tree | 17310d230424b91abd3b5ecfb97a1711b4177aea | |
parent | 15b8ef5bec05445d5448ca8b0c20c147331e9539 [diff] |
Adds abstract distributed primitive builder + Refactored AtomicCounter and AtomicValue builder to make use of it. Change-Id: I56cef62673fabc54ca29634c27e4ff1f41ba6a88
diff --git a/apps/test/distributed-primitives/src/main/java/org/onosproject/distributedprimitives/cli/CounterTestIncrementCommand.java b/apps/test/distributed-primitives/src/main/java/org/onosproject/distributedprimitives/cli/CounterTestIncrementCommand.java index d93ad78..a564bda 100644 --- a/apps/test/distributed-primitives/src/main/java/org/onosproject/distributedprimitives/cli/CounterTestIncrementCommand.java +++ b/apps/test/distributed-primitives/src/main/java/org/onosproject/distributedprimitives/cli/CounterTestIncrementCommand.java
@@ -67,11 +67,11 @@ atomicCounter = storageService.atomicCounterBuilder() .withName(counter) .withPartitionsDisabled() - .buildAsyncCounter(); + .build(); } else { atomicCounter = storageService.atomicCounterBuilder() .withName(counter) - .buildAsyncCounter(); + .build(); } CompletableFuture<Long> result; if (delta != null) {