X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fnorthbound%2Fstatistics%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fstatistics%2Fnorthbound%2FFlowStatistics.java;h=9b31b913fefa9f71cf0645da0cef0f89aa043bfc;hb=e383b2e0b9072b7b5b3e3903b8a42ab3917b7f63;hp=25b671c1a881d44cd7e61137fdaca09621aa1885;hpb=ff1b4a79cca00743a00c3b0b1100bd0ab2b2fb31;p=controller.git diff --git a/opendaylight/northbound/statistics/src/main/java/org/opendaylight/controller/statistics/northbound/FlowStatistics.java b/opendaylight/northbound/statistics/src/main/java/org/opendaylight/controller/statistics/northbound/FlowStatistics.java index 25b671c1a8..9b31b913fe 100644 --- a/opendaylight/northbound/statistics/src/main/java/org/opendaylight/controller/statistics/northbound/FlowStatistics.java +++ b/opendaylight/northbound/statistics/src/main/java/org/opendaylight/controller/statistics/northbound/FlowStatistics.java @@ -14,26 +14,27 @@ import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; + import org.opendaylight.controller.sal.core.Node; import org.opendaylight.controller.sal.reader.FlowOnNode; -@XmlRootElement +@XmlRootElement(name = "nodeFlowStatistics") @XmlAccessorType(XmlAccessType.NONE) public class FlowStatistics { @XmlElement private Node node; - @XmlElement(name="flowStat") - private List flowStat; + @XmlElement + private List flowStatistic; // To satisfy JAXB @SuppressWarnings("unused") - private FlowStatistics() { + private FlowStatistics() { } public FlowStatistics(Node node, List flowStat) { super(); this.node = node; - this.flowStat = flowStat; + this.flowStatistic = flowStat; } public Node getNode() { @@ -45,10 +46,10 @@ public class FlowStatistics { } public List getFlowStats() { - return flowStat; + return flowStatistic; } public void setFlowStats(List flowStats) { - this.flowStat = flowStats; + this.flowStatistic = flowStats; } }