commit | bff6d8f4fc8152bb1e392a050143dbe70f74fbe2 | [log] [tgz] |
---|---|---|
author | Madan Jampani <madan@onlab.us> | Tue Mar 31 16:53:47 2015 -0700 |
committer | Ray Milkey <ray@onlab.us> | Fri Apr 03 20:39:07 2015 +0000 |
tree | e3123ef50ba1f0b1d4995ac2228fc2cbc2119224 | |
parent | 8ceff308abaf9a864876d9e4403499e063643318 [diff] [blame] |
Added distributed transaction support through a two phase commit protocol Change-Id: I85d64234a24823fee8b3c2ea830abbb6867dad38
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 572867c..eb129fe 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
@@ -15,6 +15,7 @@ */ package org.onosproject.store.service; +import java.util.Collection; import java.util.List; /** @@ -35,4 +36,16 @@ * @return list of map information */ List<MapInfo> getMapInfo(); + + /** + * Returns all the transactions in the system. + * + * @return collection of transactions + */ + Collection<Transaction> getTransactions(); + + /** + * Redrives stuck transactions while removing those that are done. + */ + void redriveTransactions(); }