Merge "Bug 3328: Set icmpv4-match into OF10 match."
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / registry / flow / DeviceFlowRegistry.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.openflowplugin.api.openflow.registry.flow;
10
11
12 import java.util.Map;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowId;
14
15 /**
16  * Created by Martin Bobak <mbobak@cisco.com> on 8.4.2015.
17  */
18 public interface DeviceFlowRegistry extends AutoCloseable {
19
20     FlowDescriptor retrieveIdForFlow(FlowRegistryKey flowRegistryKey);
21
22     void store(FlowRegistryKey flowRegistryKey, FlowDescriptor flowDescriptor);
23
24     FlowId storeIfNecessary(FlowRegistryKey flowRegistryKey, short tableId);
25
26     void markToBeremoved(FlowRegistryKey flowRegistryKey);
27
28     void removeMarked();
29
30     Map<FlowRegistryKey, FlowDescriptor> getAllFlowDescriptors();
31
32     @Override
33     void close();
34 }