commit | b5d72d59f6ab51000682861ec441fb6d5d143e80 | [log] [tgz] |
---|---|---|
author | Madan Jampani <madan@onlab.us> | Fri Apr 03 16:53:50 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed Apr 08 19:33:54 2015 +0000 |
tree | f057027be97e5aafceef1df5bc31c729f113b6c9 | |
parent | b5f2b1523fb7dbbd757255b4bc1b2af09f76e18f [diff] [blame] |
Support for a distributed counter Change-Id: I346e9baa28556fac13e53771021f5f6fbcd75ac9
diff --git a/core/api/src/main/java/org/onosproject/store/service/StorageAdminService.java b/core/api/src/main/java/org/onosproject/store/service/StorageAdminService.java index eb129fe..204e35b 100644 --- a/core/api/src/main/java/org/onosproject/store/service/StorageAdminService.java +++ b/core/api/src/main/java/org/onosproject/store/service/StorageAdminService.java
@@ -17,6 +17,7 @@ import java.util.Collection; import java.util.List; +import java.util.Map; /** * Service for administering storage instances. @@ -38,6 +39,13 @@ List<MapInfo> getMapInfo(); /** + * Returns information about all the atomic counters in the system. + * + * @return mapping from counter name to that counter's next value + */ + Map<String, Long> getCounters(); + + /** * Returns all the transactions in the system. * * @return collection of transactions