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=c482b318eda18c6649b012c3b42e5004aace8db8;hp=146e95ab32a457fc1f6e90bbc112b70c191f900f;hpb=59cc8f34c24d81a8890a94c11dedd4b21caa0adf;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 146e95ab32..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; } }