From d046ec09656aa39bc26b6e3d6b01ca52cfa22af2 Mon Sep 17 00:00:00 2001 From: Katelyn Kasperowicz Date: Fri, 6 Dec 2013 14:43:04 -0800 Subject: [PATCH] Changed maximumEntries to correct int rather than long -Added maximumEntries to needed parts in NodeTableStatistics Change-Id: I07fa635562b8514aad17cf4a9c6f22a419dfb750 Signed-off-by: Katelyn Kasperowicz --- .../controller/sal/reader/NodeTableStatistics.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/reader/NodeTableStatistics.java b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/reader/NodeTableStatistics.java index eb33ad6799..e4c3961a14 100644 --- a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/reader/NodeTableStatistics.java +++ b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/reader/NodeTableStatistics.java @@ -48,6 +48,7 @@ public class NodeTableStatistics implements Serializable { result = prime * result + activeCount; result = prime * result + (int) (lookupCount ^ (lookupCount >>> 32)); result = prime * result + (int) (matchedCount ^ (matchedCount >>> 32)); + result = prime * result + maximumEntries; result = prime * result + ((name == null) ? 0 : name.hashCode()); result = prime * result + ((nodeTable == null) ? 0 : nodeTable.hashCode()); return result; @@ -74,6 +75,9 @@ public class NodeTableStatistics implements Serializable { if (matchedCount != other.matchedCount) { return false; } + if (maximumEntries != other.maximumEntries) { + return false; + } if (name == null) { if (other.name != null) { return false; @@ -169,7 +173,7 @@ public class NodeTableStatistics implements Serializable { /** * @return the maximumEntries */ - public long getMaximumEntries() { + public int getMaximumEntries() { return maximumEntries; } @@ -185,6 +189,7 @@ public class NodeTableStatistics implements Serializable { return "NodeTableStats[tableId = " + nodeTable + ", activeCount = " + activeCount + ", lookupCount = " + lookupCount - + ", matchedCount = " + matchedCount + "]"; + + ", matchedCount = " + matchedCount + + ", maximumEntries = " + maximumEntries + "]"; } } -- 2.36.6