Added device transaction log cli
[ovsdb.git] / hwvtepsouthbound / hwvtepsouthbound-impl / src / main / java / org / opendaylight / ovsdb / hwvtepsouthbound / HwvtepTransactionLogElement.java
1 /*
2  * Copyright (c) 2017 Ericsson India Global Services Pvt Ltd. 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 package org.opendaylight.ovsdb.hwvtepsouthbound;
9
10 import org.opendaylight.ovsdb.hwvtepsouthbound.transactions.md.HwvtepOperationalCommandAggregator;
11 import org.opendaylight.ovsdb.hwvtepsouthbound.transactions.md.TransactionInvoker;
12 import org.opendaylight.ovsdb.lib.MonitorCallBack;
13 import org.opendaylight.ovsdb.lib.message.TableUpdates;
14 import org.opendaylight.ovsdb.lib.schema.DatabaseSchema;
15 import org.opendaylight.ovsdb.utils.mdsal.utils.TransactionElement;
16 import org.opendaylight.ovsdb.utils.mdsal.utils.TransactionType;
17 import org.slf4j.Logger;
18 import org.slf4j.LoggerFactory;
19
20 public class HwvtepTransactionLogElement extends TransactionElement {
21
22     private final boolean isDeviceLog;
23
24     public HwvtepTransactionLogElement(TransactionType transactionType,
25                                        Object data,
26                                        boolean isDeviceLog) {
27         super(transactionType, data);
28         this.isDeviceLog = isDeviceLog;
29     }
30
31     public HwvtepTransactionLogElement(TransactionElement element,
32                                        boolean isDeviceLog) {
33         super(element.getTransactionType(), element.getData());
34         this.isDeviceLog = isDeviceLog;
35     }
36
37     @Override
38     public String toString() {
39         return "{" +
40                 "isDeviceLog=" + isDeviceLog +
41                 super.toString() +
42                 '}';
43     }
44 }