X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fnorthbound%2Fstatistics%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fstatistics%2Fnorthbound%2FFlowStatistics.java;h=9b31b913fefa9f71cf0645da0cef0f89aa043bfc;hp=25b671c1a881d44cd7e61137fdaca09621aa1885;hb=fae0114184010519a175ef4b529c84e735c2e41f;hpb=39e1d43dc8f41f682fb818469a3aeb542e76ea8e 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; } }