Code ReOrganization and Re-Architecture changes
[ovsdb.git] / plugin / src / main / java / org / opendaylight / ovsdb / plugin / OVSDBConfigService.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.plugin;
11
12 import java.util.List;
13 import java.util.concurrent.ConcurrentMap;
14
15 import org.opendaylight.controller.sal.core.Node;
16 import org.opendaylight.controller.sal.utils.Status;
17 import org.opendaylight.ovsdb.lib.table.Table;
18
19 public interface OVSDBConfigService {
20     public StatusWithUuid insertRow (Node node, String tableName, String parentUUID, Table<?> row);
21     public Status deleteRow (Node node, String tableName, String rowUUID);
22     public Status updateRow (Node node, String tableName, String parentUUID, String rowUUID, Table<?> row);
23     public String getSerializedRow(Node node, String tableName, String uuid) throws Exception;
24     public String getSerializedRows(Node node, String tableName) throws Exception;
25     public Table<?> getRow(Node node, String tableName, String uuid) throws Exception;
26     public ConcurrentMap<String, Table<?>> getRows(Node node, String tableName) throws Exception;
27     public List<String> getTables(Node node) throws Exception;
28 }