d766f199f246e02a6ab71738f0355b526865cb6b
[ovsdb.git] / hwvtepsouthbound / hwvtepsouthbound-impl / src / main / java / org / opendaylight / ovsdb / hwvtepsouthbound / transact / AbstractTransactCommand.java
1 /*
2  * Copyright (c) 2015 China Telecom Beijing Research Institute and others.  All rights reserved.
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
9 package org.opendaylight.ovsdb.hwvtepsouthbound.transact;
10
11 import java.util.Collection;
12
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;
15
16 public abstract class AbstractTransactCommand implements TransactCommand {
17
18     private HwvtepOperationalState operationalState;
19     private Collection<DataTreeModification<Node>> changes;
20
21     protected AbstractTransactCommand() {
22         // NO OP
23     }
24
25     public AbstractTransactCommand(HwvtepOperationalState state, Collection<DataTreeModification<Node>> changes) {
26         this.operationalState = state;
27         this.changes = changes;
28     }
29
30     public HwvtepOperationalState getOperationalState() {
31         return operationalState;
32     }
33
34     public Collection<DataTreeModification<Node>> getChanges() {
35         return changes;
36     }
37 }