2 * Copyright (c) 2013 Big Switch Networks, Inc. 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
8 package org.opendaylight.controller.sal.reader;
10 import java.io.Serializable;
12 import javax.xml.bind.annotation.XmlAccessType;
13 import javax.xml.bind.annotation.XmlAccessorType;
14 import javax.xml.bind.annotation.XmlElement;
15 import javax.xml.bind.annotation.XmlRootElement;
17 import org.opendaylight.controller.sal.core.NodeTable;
20 * @author Aditya Prakash Vaja <aditya.vaja@bigswitch.com>
21 * Represents the Table statistics for the node
26 @XmlAccessorType(XmlAccessType.NONE)
27 public class NodeTableStatistics implements Serializable {
28 private static final long serialVersionUID = 1L;
31 private NodeTable nodeTable;
35 private int activeCount;
37 private long lookupCount;
39 private long matchedCount;
43 public NodeTableStatistics() {
48 * @return the node table
50 public NodeTable getNodeTable() {
55 * @param table of the node
57 public void setNodeTable(NodeTable table) {
58 this.nodeTable = table;
62 * @return name of the table
64 public String getName() {
69 * @param name - set the table name to name
71 public void setName(String name) {
76 * @return the activeCount
78 public int getActiveCount() {
83 * @param activeCount the activeCount to set
85 public void setActiveCount(int activeCount) {
86 this.activeCount = activeCount;
90 * @return the lookupCount
92 public long getLookupCount() {
97 * @param lookupCount the lookupCount to set
99 public void setLookupCount(long lookupCount) {
100 this.lookupCount = lookupCount;
104 * @return the matchedCount
106 public long getMatchedCount() {
111 * @param matchedCount the matchedCount to set
113 public void setMatchedCount(long matchedCount) {
114 this.matchedCount = matchedCount;
118 public String toString() {
119 return "NodeTableStats[tableId = " + nodeTable
120 + ", activeCount = " + activeCount
121 + ", lookupCount = " + lookupCount
122 + ", matchedCount = " + matchedCount + "]";