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 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;
15 import org.opendaylight.controller.sal.core.NodeTable;
18 * @author Aditya Prakash Vaja <aditya.vaja@bigswitch.com>
19 * Represents the Table statistics for the node
24 @XmlAccessorType(XmlAccessType.NONE)
25 public class NodeTableStatistics {
27 private NodeTable nodeTable;
31 private int activeCount;
33 private long lookupCount;
35 private long matchedCount;
39 public NodeTableStatistics() {
44 * @return the node table
46 public NodeTable getNodeTable() {
51 * @param table of the node
53 public void setNodeTable(NodeTable table) {
54 this.nodeTable = table;
58 * @return name of the table
60 public String getName() {
65 * @param name - set the table name to name
67 public void setName(String name) {
72 * @return the activeCount
74 public int getActiveCount() {
79 * @param activeCount the activeCount to set
81 public void setActiveCount(int activeCount) {
82 this.activeCount = activeCount;
86 * @return the lookupCount
88 public long getLookupCount() {
93 * @param lookupCount the lookupCount to set
95 public void setLookupCount(long lookupCount) {
96 this.lookupCount = lookupCount;
100 * @return the matchedCount
102 public long getMatchedCount() {
107 * @param matchedCount the matchedCount to set
109 public void setMatchedCount(long matchedCount) {
110 this.matchedCount = matchedCount;
114 public String toString() {
115 return "NodeTableStats[tableId = " + nodeTable
116 + ", activeCount = " + activeCount
117 + ", lookupCount = " + lookupCount
118 + ", matchedCount = " + matchedCount + "]";