Merge "Fix placement of config file"
[ovsdb.git] / ovsdb-plugin-compatibility-layer / src / main / java / org / opendaylight / ovsdb / compatibility / plugin / api / OvsdbInventoryService.java
1 /*
2  * Copyright (C) 2013 Red Hat, Inc.
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  * Authors : Madhu Venugopal, Brent Salisbury
9  */
10 package org.opendaylight.ovsdb.compatibility.plugin.api;
11
12 import java.net.InetAddress;
13 import java.util.Set;
14 import java.util.concurrent.ConcurrentMap;
15
16 import org.opendaylight.controller.sal.core.Node;
17 import org.opendaylight.controller.sal.core.Property;
18 import org.opendaylight.controller.sal.core.UpdateType;
19 import org.opendaylight.ovsdb.lib.message.TableUpdates;
20 import org.opendaylight.ovsdb.lib.notation.Row;
21
22 public interface OvsdbInventoryService{
23     public ConcurrentMap<String, ConcurrentMap<String, Row>> getCache(Node n, String databaseName);
24     public ConcurrentMap<String, Row> getTableCache(Node n, String databaseName, String tableName);
25     public Row getRow (Node n, String databaseName, String tableName, String uuid);
26     public void updateRow(Node n, String databaseName, String tableName, String uuid, Row row);
27     public void removeRow(Node n, String databaseName, String tableName, String uuid);
28     public void processTableUpdates(Node n, String databaseName,TableUpdates tableUpdates);
29     public void printCache(Node n);
30     public void addNode(Node n, Set<Property> props);
31     public void notifyNodeAdded(Node n, InetAddress address, int port);
32     public void removeNode(Node n);
33     public void addNodeProperty(Node node, UpdateType type, Set<Property> props);
34 }