Revert "Fix statistics race condition on big flows"
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / registry / flow / DeviceFlowRegistry.java
index 1e574f64592dd25dc7b439bca7a08777bf40548f..e43433f4fb5692f4cbf0f94f4c630fd0b27bb3d3 100644 (file)
@@ -15,12 +15,10 @@ import java.util.List;
 import java.util.Map;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNode;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowId;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.NodeKey;
-import org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier;
 
 /**
- * Created by Martin Bobak <mbobak@cisco.com> on 8.4.2015.
+ * Registry for mapping composite-key of flow ({@link FlowRegistryKey}) from device view
+ * to flow descriptor ({@link FlowDescriptor}) as the identifier of the same flow in data store.
  */
 public interface DeviceFlowRegistry extends AutoCloseable {
 
@@ -32,12 +30,12 @@ public interface DeviceFlowRegistry extends AutoCloseable {
 
     FlowId storeIfNecessary(FlowRegistryKey flowRegistryKey);
 
-    void markToBeremoved(FlowRegistryKey flowRegistryKey);
+    void removeDescriptor(FlowRegistryKey flowRegistryKey);
 
-    void removeMarked();
+    void update(FlowRegistryKey newFlowRegistryKey,FlowDescriptor flowDescriptor);
 
     Map<FlowRegistryKey, FlowDescriptor> getAllFlowDescriptors();
 
     @Override
     void close();
-}
+}
\ No newline at end of file