2 * Copyright (c) 2015 China Telecom Beijing Research Institute 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.transact;
11 import java.util.Collection;
13 import org.opendaylight.controller.md.sal.binding.api.DataTreeModification;
14 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node;
16 public abstract class AbstractTransactCommand implements TransactCommand {
18 private HwvtepOperationalState operationalState;
19 private Collection<DataTreeModification<Node>> changes;
21 protected AbstractTransactCommand() {
25 public AbstractTransactCommand(HwvtepOperationalState state, Collection<DataTreeModification<Node>> changes) {
26 this.operationalState = state;
27 this.changes = changes;
30 public HwvtepOperationalState getOperationalState() {
31 return operationalState;
34 public Collection<DataTreeModification<Node>> getChanges() {