BUG 2302 : odl-clustering-test-app should not be part of the odl-restconf-all feature set
[controller.git] / opendaylight / adsal / northbound / statistics / src / main / java / org / opendaylight / controller / statistics / northbound / FlowStatistics.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.controller.statistics.northbound;
10
11 import java.util.List;
12
13 import javax.xml.bind.annotation.XmlAccessType;
14 import javax.xml.bind.annotation.XmlAccessorType;
15 import javax.xml.bind.annotation.XmlElement;
16 import javax.xml.bind.annotation.XmlRootElement;
17
18 import org.opendaylight.controller.sal.core.Node;
19 import org.opendaylight.controller.sal.reader.FlowOnNode;
20
21 @XmlRootElement(name = "nodeFlowStatistics")
22 @XmlAccessorType(XmlAccessType.NONE)
23 public class FlowStatistics {
24     @XmlElement
25     private Node node;
26     @XmlElement
27     private List<FlowOnNode> flowStatistic;
28
29     // To satisfy JAXB
30     @SuppressWarnings("unused")
31     private FlowStatistics() {
32     }
33
34     public FlowStatistics(Node node, List<FlowOnNode> flowStat) {
35         super();
36         this.node = node;
37         this.flowStatistic = flowStat;
38     }
39
40     public Node getNode() {
41         return node;
42     }
43
44     public void setNode(Node node) {
45         this.node = node;
46     }
47
48     public List<FlowOnNode> getFlowStats() {
49         return flowStatistic;
50     }
51
52     public void setFlowStats(List<FlowOnNode> flowStats) {
53         this.flowStatistic = flowStats;
54     }
55 }