a1c20190e61499e26669a42a7597ea426f0cd34e
[controller.git] / opendaylight / northbound / statistics / src / main / java / org / opendaylight / controller / statistics / northbound / TableStatistics.java
1 /*
2  * Copyright (c) 2013 Big Switch Networks, Inc.  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.controller.statistics.northbound;
9 import java.util.List;
10
11 import javax.xml.bind.annotation.XmlAccessType;
12 import javax.xml.bind.annotation.XmlAccessorType;
13 import javax.xml.bind.annotation.XmlElement;
14 import javax.xml.bind.annotation.XmlRootElement;
15
16 import org.opendaylight.controller.sal.core.Node;
17 import org.opendaylight.controller.sal.reader.NodeTableStatistics;
18
19 @XmlRootElement
20 @XmlAccessorType(XmlAccessType.NONE)
21 public class TableStatistics {
22     @XmlElement
23     private Node node;
24     @XmlElement(name="tableStat")
25     private List<NodeTableStatistics> tableStats;
26
27     // To satisfy JAXB
28     @SuppressWarnings("unused")
29     private TableStatistics() {
30     }
31
32     public TableStatistics(Node node, List<NodeTableStatistics> tableStats) {
33         super();
34         this.node = node;
35         this.tableStats = tableStats;
36     }
37
38     public Node getNode() {
39         return node;
40     }
41
42     public void setNode(Node node) {
43         this.node = node;
44     }
45
46     public List<NodeTableStatistics> getTableStats() {
47         return tableStats;
48     }
49
50     public void setTableStats(List<NodeTableStatistics> tableStats) {
51         this.tableStats = tableStats;
52     }
53
54 }