X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fnorthbound%2Fstatistics%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fstatistics%2Fnorthbound%2FPortStatistics.java;h=e519472d40c2afeb1ed2beaf3d6b7b31800e5c6d;hb=c482b318eda18c6649b012c3b42e5004aace8db8;hp=068baa15fac733e015fe53565c46be0e7b6dfe42;hpb=e2f7aaa41e482815ca1d4495eb85c8653cd903ab;p=controller.git diff --git a/opendaylight/northbound/statistics/src/main/java/org/opendaylight/controller/statistics/northbound/PortStatistics.java b/opendaylight/northbound/statistics/src/main/java/org/opendaylight/controller/statistics/northbound/PortStatistics.java index 068baa15fa..e519472d40 100644 --- a/opendaylight/northbound/statistics/src/main/java/org/opendaylight/controller/statistics/northbound/PortStatistics.java +++ b/opendaylight/northbound/statistics/src/main/java/org/opendaylight/controller/statistics/northbound/PortStatistics.java @@ -18,23 +18,23 @@ import javax.xml.bind.annotation.XmlRootElement; import org.opendaylight.controller.sal.core.Node; import org.opendaylight.controller.sal.reader.NodeConnectorStatistics; -@XmlRootElement +@XmlRootElement(name = "nodePortStatistics") @XmlAccessorType(XmlAccessType.NONE) public class PortStatistics { @XmlElement private Node node; - @XmlElement(name="portStat") - private List portStats; + @XmlElement + private List portStatistic; // To satisfy JAXB @SuppressWarnings("unused") - private PortStatistics() { + private PortStatistics() { } public PortStatistics(Node node, List portStats) { super(); this.node = node; - this.portStats = portStats; + this.portStatistic = portStats; } public Node getNode() { @@ -46,11 +46,11 @@ public class PortStatistics { } public List getPortStats() { - return portStats; + return portStatistic; } public void setFlowStats(List portStats) { - this.portStats = portStats; + this.portStatistic = portStats; } }