Revert "Checkstyle enforcer"
[controller.git] / opendaylight / 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 import org.opendaylight.controller.sal.core.Node;
18 import org.opendaylight.controller.sal.reader.FlowOnNode;
19
20 @XmlRootElement
21 @XmlAccessorType(XmlAccessType.NONE)
22 public class FlowStatistics {
23     @XmlElement
24     private Node node;
25     @XmlElement(name="flowStat")
26     private List<FlowOnNode> flowStat;
27
28     // To satisfy JAXB
29     @SuppressWarnings("unused")
30         private FlowStatistics() {
31     }
32
33     public FlowStatistics(Node node, List<FlowOnNode> flowStat) {
34         super();
35         this.node = node;
36         this.flowStat = flowStat;
37     }
38
39     public Node getNode() {
40         return node;
41     }
42
43     public void setNode(Node node) {
44         this.node = node;
45     }
46
47     public List<FlowOnNode> getFlowStats() {
48         return flowStat;
49     }
50
51     public void setFlowStats(List<FlowOnNode> flowStats) {
52         this.flowStat = flowStats;
53     }
54 }