Add a distributed map implementation of FlowBatchMap.
- Added SharedFlowBatchMap as an implementation of FlowBatchMap.
- SharedFlowBatchMap is a distributed map implementation based on ISharedCollectionsService.
- This task is a part of ONOS-1842.
Change-Id: I480b3adecc493f82edbd6245e2f8aaf702c65d4f
diff --git a/src/main/java/net/onrc/onos/core/flowmanager/FlowBatchMap.java b/src/main/java/net/onrc/onos/core/flowmanager/FlowBatchMap.java
index 6886d68..153bcf3 100644
--- a/src/main/java/net/onrc/onos/core/flowmanager/FlowBatchMap.java
+++ b/src/main/java/net/onrc/onos/core/flowmanager/FlowBatchMap.java
@@ -41,7 +41,7 @@
* Gets all {@link FlowBatchOperation} objects existing in the map.
* <p>
* The changes to the returned set does not affect the original map.
-
+ *
* @return a set of {@link FlowBatchOperation} objects
*/
Set<FlowBatchOperation> getAll();
@@ -84,9 +84,10 @@
void removeListener(FlowBatchMapEventListener listener);
/**
- * Checks if this instance is a leader of the map.
+ * Checks if the specified flow batch operation is stored in local storage.
*
- * @return true if it is leader, false otherwise
+ * @param id the ID of the batch operation
+ * @return true if the specified batch operation is stored in local storage
*/
- boolean isLeader();
+ boolean isLocal(FlowBatchId id);
}