Merge commit 'refs/changes/43/1843/1' of https://git.opendaylight.org/gerrit/affinity
[affinity.git] / analytics / northbound / src / main / java / org / opendaylight / affinity / analytics / northbound / PrefixStatistics.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 import org.opendaylight.controller.sal.core.Host;
16
17 @XmlRootElement
18 @XmlAccessorType(XmlAccessType.NONE)
19 public class PrefixStatistics {
20     @XmlElement
21     private long byteCount;
22
23     // To satisfy JAXB
24     @SuppressWarnings("unused")
25     private PrefixStatistics() {
26     }
27
28     public PrefixStatistics(long byteCount) {
29         super();
30         this.byteCount = byteCount;
31     }
32
33     public long getByteCount() {
34         return this.byteCount;
35     }
36
37     public void setByteCount(long byteCount) {
38         this.byteCount = byteCount;
39     }
40 }