Merge "L3: Add eth to br-ex"
[ovsdb.git] / library / impl / src / main / java / org / opendaylight / ovsdb / lib / message / MonitorRequest.java
1 /*
2  * Copyright (c) 2013, 2015 EBay Software Foundation 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.lib.message;
10
11 import java.util.Set;
12
13 import org.opendaylight.ovsdb.lib.schema.TableSchema;
14
15 import com.fasterxml.jackson.annotation.JsonIgnore;
16 import com.fasterxml.jackson.annotation.JsonInclude;
17 import com.google.common.collect.Sets;
18
19 /**
20  * @author Ashwin Raveendran
21  * @author Madhu Venugopal
22  */
23 @JsonInclude(JsonInclude.Include.NON_NULL)
24 public class MonitorRequest {
25     @JsonIgnore String tableName;
26     Set<String> columns;
27     MonitorSelect select;
28
29     public MonitorRequest() {
30     }
31
32     public MonitorRequest(String tableName, Set<String> columns) {
33         this.tableName = tableName;
34         this.columns = columns;
35     }
36
37     public MonitorRequest(String tableName) {
38         this.tableName = tableName;
39     }
40
41     public String getTableName() {
42         return tableName;
43     }
44
45     public void setTableName(String tableName) {
46         this.tableName = tableName;
47     }
48
49     public MonitorSelect getSelect() {
50         return select;
51     }
52
53     public void setSelect(MonitorSelect select) {
54         this.select = select;
55     }
56
57     public Set<String> getColumns() {
58         return columns;
59     }
60
61     public void setColumns(Set<String> columns) {
62         this.columns = columns;
63     }
64
65     public void addColumn(String column) {
66         if (columns == null) {
67             columns = Sets.newHashSet();
68         }
69         columns.add(column);
70     }
71 }