Search in sources :

Example 26 with OvsdbRowStore

use of org.onosproject.ovsdb.controller.OvsdbRowStore in project onos by opennetworkinglab.

the class DefaultOvsdbClient method updateOvsdbStore.

@Override
public void updateOvsdbStore(String dbName, String tableName, String uuid, Row row) {
    OvsdbTableStore tableStore = ovsdbStore.getOvsdbTableStore(dbName);
    if (tableStore == null) {
        tableStore = new OvsdbTableStore();
    }
    OvsdbRowStore rowStore = tableStore.getRows(tableName);
    if (rowStore == null) {
        rowStore = new OvsdbRowStore();
    }
    rowStore.insertRow(uuid, row);
    tableStore.createOrUpdateTable(tableName, rowStore);
    ovsdbStore.createOrUpdateOvsdbStore(dbName, tableStore);
}
Also used : OvsdbTableStore(org.onosproject.ovsdb.controller.OvsdbTableStore) OvsdbRowStore(org.onosproject.ovsdb.controller.OvsdbRowStore)

Aggregations

OvsdbRowStore (org.onosproject.ovsdb.controller.OvsdbRowStore)26 Row (org.onosproject.ovsdb.rfc.notation.Row)21 DatabaseSchema (org.onosproject.ovsdb.rfc.schema.DatabaseSchema)16 Uuid (org.onosproject.ovsdb.rfc.notation.Uuid)12 OvsdbMap (org.onosproject.ovsdb.rfc.notation.OvsdbMap)11 OvsdbTableStore (org.onosproject.ovsdb.controller.OvsdbTableStore)10 HashMap (java.util.HashMap)9 HashSet (java.util.HashSet)9 OvsdbBridge (org.onosproject.ovsdb.controller.OvsdbBridge)8 Operation (org.onosproject.ovsdb.rfc.operations.Operation)8 Map (java.util.Map)7 ConcurrentMap (java.util.concurrent.ConcurrentMap)7 Bridge (org.onosproject.ovsdb.rfc.table.Bridge)7 Condition (org.onosproject.ovsdb.rfc.notation.Condition)6 Mutation (org.onosproject.ovsdb.rfc.notation.Mutation)6 OvsdbSet (org.onosproject.ovsdb.rfc.notation.OvsdbSet)6 Mutate (org.onosproject.ovsdb.rfc.operations.Mutate)6 ImmutableSet (com.google.common.collect.ImmutableSet)5 ArrayList (java.util.ArrayList)5 Set (java.util.Set)5