1 package org.opendaylight.ovsdb.southbound.transactions.md;
3 import java.util.ArrayList;
6 import org.opendaylight.controller.md.sal.binding.api.ReadWriteTransaction;
7 import org.opendaylight.ovsdb.lib.message.TableUpdates;
8 import org.opendaylight.ovsdb.lib.schema.DatabaseSchema;
9 import org.opendaylight.ovsdb.southbound.OvsdbClientKey;
11 public class OvsdbOperationalCommandAggregator implements TransactionCommand {
14 private List<TransactionCommand> commands = new ArrayList<TransactionCommand>();
16 public OvsdbOperationalCommandAggregator(OvsdbClientKey key,TableUpdates updates, DatabaseSchema dbSchema) {
17 commands.add(new OvsdbBridgeUpdateCommand(key, updates, dbSchema));
18 commands.add(new OvsdbBridgeRemovedCommand(key, updates, dbSchema));
19 commands.add(new OvsdbControllerUpdateCommand(key, updates, dbSchema));
20 commands.add(new OvsdbControllerRemovedCommand(key, updates, dbSchema));
21 commands.add(new OvsdbPortUpdateCommand(key, updates, dbSchema));
22 commands.add(new OvsdbPortRemoveCommand(key, updates, dbSchema));
23 commands.add(new OpenVSwitchUpdateCommand(key, updates, dbSchema));
27 public void execute(ReadWriteTransaction transaction) {
28 for (TransactionCommand command: commands) {
29 command.execute(transaction);