X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Freader%2FNodeTableStatistics.java;h=e4c3961a140da41ff0078c893fe198677c2353b7;hp=eb33ad67995f2621fd95024c0736e897fb6f18ee;hb=d046ec09656aa39bc26b6e3d6b01ca52cfa22af2;hpb=3dcdf33c8cbc2eba8b2e6cb0f110a17edfe57ec4 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 + "]"; } }