2 * Copyright (c) 2013, 2015 Red Hat, Inc. and others. All rights reserved.
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
9 package org.opendaylight.ovsdb.plugin.api;
11 import java.net.InetAddress;
12 import java.util.concurrent.ConcurrentMap;
14 import org.opendaylight.ovsdb.lib.message.TableUpdates;
15 import org.opendaylight.ovsdb.lib.notation.Row;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node;
18 public interface OvsdbInventoryService {
19 ConcurrentMap<String, ConcurrentMap<String, Row>> getCache(Node n, String databaseName);
20 ConcurrentMap<String, Row> getTableCache(Node n, String databaseName, String tableName);
21 Row getRow(Node n, String databaseName, String tableName, String uuid);
22 void updateRow(Node n, String databaseName, String tableName, String uuid, Row row);
23 void removeRow(Node n, String databaseName, String tableName, String uuid);
24 void processTableUpdates(Node n, String databaseName, TableUpdates tableUpdates);
25 void printCache(Node n);
26 void notifyNodeAdded(Node n, InetAddress address, int port);
27 void removeNode(Node n);