Revert "Checkstyle enforcer"
[controller.git] / opendaylight / sal / api / src / main / java / org / opendaylight / controller / sal / reader / NodeTableStatistics.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.sal.reader;
9
10 import javax.xml.bind.annotation.XmlAccessType;
11 import javax.xml.bind.annotation.XmlAccessorType;
12 import javax.xml.bind.annotation.XmlElement;
13 import javax.xml.bind.annotation.XmlRootElement;
14
15 import org.opendaylight.controller.sal.core.NodeTable;
16
17 /**
18  * @author Aditya Prakash Vaja <aditya.vaja@bigswitch.com>
19  * Represents the Table statistics for the node
20  * 
21  */
22
23 @XmlRootElement
24 @XmlAccessorType(XmlAccessType.NONE)
25 public class NodeTableStatistics {
26     @XmlElement
27     private NodeTable nodeTable;
28     @XmlElement
29     private String name;
30     @XmlElement
31     private int activeCount;
32     @XmlElement
33     private long lookupCount;
34     @XmlElement
35     private long matchedCount;
36
37
38     //To Satisfy JAXB
39     public NodeTableStatistics() {
40
41     }
42
43     /**
44      * @return the node table
45      */
46     public NodeTable getNodeTable() {
47         return nodeTable;
48     }
49
50     /**
51      * @param table of the node
52      */
53     public void setNodeTable(NodeTable table) {
54         this.nodeTable = table;
55     }
56
57     /**
58      * @return name of the table
59      */
60     public String getName() {
61         return name;
62     }
63
64     /**
65      * @param name - set the table name to name
66      */
67     public void setName(String name) {
68         this.name = name;
69     }
70
71     /**
72      * @return the activeCount
73      */
74     public int getActiveCount() {
75         return activeCount;
76     }
77
78     /**
79      * @param activeCount the activeCount to set
80      */
81     public void setActiveCount(int activeCount) {
82         this.activeCount = activeCount;
83     }
84
85     /**
86      * @return the lookupCount
87      */
88     public long getLookupCount() {
89         return lookupCount;
90     }
91
92     /**
93      * @param lookupCount the lookupCount to set
94      */
95     public void setLookupCount(long lookupCount) {
96         this.lookupCount = lookupCount;
97     }
98
99     /**
100      * @return the matchedCount
101      */
102     public long getMatchedCount() {
103         return matchedCount;
104     }
105
106     /**
107      * @param matchedCount the matchedCount to set
108      */
109     public void setMatchedCount(long matchedCount) {
110         this.matchedCount = matchedCount;
111     }
112
113     @Override
114     public String toString() {
115         return "NodeTableStats[tableId = " + nodeTable
116                 + ", activeCount = " + activeCount
117                 + ", lookupCount = " + lookupCount
118                 + ", matchedCount = " + matchedCount + "]";
119     }
120 }