Cleaup Statistics northbound and add exmaples
[controller.git] / opendaylight / northbound / statistics / src / main / java / org / opendaylight / controller / statistics / northbound / AllFlowStatistics.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 @XmlRootElement(name = "list")
19 @XmlAccessorType(XmlAccessType.NONE)
20 public class AllFlowStatistics {
21         @XmlElement
22         List<FlowStatistics> flowStatistics;
23         //To satisfy JAXB
24         @SuppressWarnings("unused")
25         private AllFlowStatistics() {}
26
27         public AllFlowStatistics(List<FlowStatistics> flowStatistics) {
28                 this.flowStatistics = flowStatistics;
29         }
30
31         public List<FlowStatistics> getFlowStatistics() {
32                 return flowStatistics;
33         }
34
35         public void setFlowStatistics(List<FlowStatistics> flowStatistics) {
36                 this.flowStatistics = flowStatistics;
37         }
38
39 }