5e911124218a2641d7db5f7caac42097473cc07b
[affinity.git] / analytics / northbound / src / main / java / org / opendaylight / affinity / analytics / northbound / Statistics.java
1 /*
2  * Copyright (c) 2013 Plexxi, 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.affinity.analytics.northbound;
10
11 import javax.xml.bind.annotation.XmlAccessType;
12 import javax.xml.bind.annotation.XmlAccessorType;
13 import javax.xml.bind.annotation.XmlElement;
14 import javax.xml.bind.annotation.XmlRootElement;
15
16 @XmlRootElement
17 @XmlAccessorType(XmlAccessType.NONE)
18 public class Statistics {
19     @XmlElement
20     private long byteCount;
21     @XmlElement
22     private double bitRate;
23
24     // To satisfy JAXB
25     @SuppressWarnings("unused")
26     private Statistics() {
27     }
28
29     public Statistics(long byteCount, double bitRate) {
30         super();
31         this.byteCount = byteCount;
32         this.bitRate = bitRate;
33     }
34
35     public long getByteCount() {
36         return this.byteCount;
37     }
38
39     public void setByteCount(long byteCount) {
40         this.byteCount = byteCount;
41     }
42
43     public double getBitRate() {
44         return this.bitRate;
45     }
46
47     public void setBitRate(double bitRate) {
48         this.bitRate = bitRate;
49     }
50 }