2 * Copyright (c) 2013, 2015 EBay Software Foundation 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.lib.message;
13 import org.opendaylight.ovsdb.lib.schema.TableSchema;
15 import com.fasterxml.jackson.annotation.JsonIgnore;
16 import com.fasterxml.jackson.annotation.JsonInclude;
17 import com.google.common.collect.Sets;
20 * @author Ashwin Raveendran
21 * @author Madhu Venugopal
24 @JsonInclude(JsonInclude.Include.NON_NULL)
25 public class MonitorRequest<E extends TableSchema<E>> {
26 @JsonIgnore String tableName;
30 public MonitorRequest() {
33 public MonitorRequest(String tableName, Set<String> columns) {
34 this.tableName = tableName;
35 this.columns = columns;
38 public MonitorRequest(String tableName) {
39 this.tableName = tableName;
42 public String getTableName() {
46 public void setTableName(String tableName) {
47 this.tableName = tableName;
50 public MonitorSelect getSelect() {
54 public void setSelect(MonitorSelect select) {
58 public Set<String> getColumns() {
62 public void setColumns(Set<String> columns) {
63 this.columns = columns;
66 public void addColumn(String column) {
67 if (columns == null) {
68 columns = Sets.<String>newHashSet();