2 * Copyright (c) 2015 Cisco Systems, 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.hwvtepsouthbound.transactions.md;
11 import java.util.ArrayList;
12 import java.util.List;
14 import org.opendaylight.controller.md.sal.binding.api.ReadWriteTransaction;
15 import org.opendaylight.ovsdb.hwvtepsouthbound.HwvtepConnectionInstance;
16 import org.opendaylight.ovsdb.lib.message.TableUpdates;
17 import org.opendaylight.ovsdb.lib.schema.DatabaseSchema;
19 public class HwvtepOperationalCommandAggregator implements TransactionCommand {
22 private List<TransactionCommand> commands = new ArrayList<TransactionCommand>();
24 public HwvtepOperationalCommandAggregator(HwvtepConnectionInstance key,TableUpdates updates,
25 DatabaseSchema dbSchema) {
26 //TODO: Add commands in here
30 public void execute(ReadWriteTransaction transaction) {
31 for (TransactionCommand command: commands) {
32 command.execute(transaction);