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=edf5bfcee83c750853253ccfd991ba7000f5f65b;hp=876bb7f7b08f11b85c068a12edb37a38747750ab;hpb=39e1d43dc8f41f682fb818469a3aeb542e76ea8e;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 876bb7f7b0..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,13 +18,13 @@ 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") @@ -34,7 +34,7 @@ public class 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; } }