2 * Copyright (c) 2013 Plexxi, Inc. and others. All rights reserved.
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
9 package org.opendaylight.controller.analytics.northbound;
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;
18 @XmlAccessorType(XmlAccessType.NONE)
19 public class HostStatistics {
24 @XmlElement(name="byteCount")
25 private long byteCount;
26 @XmlElement(name="bitRate")
27 private double bitRate;
30 @SuppressWarnings("unused")
31 private HostStatistics() {
34 public HostStatistics(Host srcHost, Host dstHost, long byteCount, double bitRate) {
36 this.srcHost = srcHost;
37 this.dstHost = dstHost;
38 this.byteCount = byteCount;
39 this.bitRate = bitRate;
42 public Host getSrcHost() {
46 public void setSrcHost(Host host) {
50 public Host getDstHost() {
54 public void setDstHost(Host host) {
58 public long getByteCount() {
59 return this.byteCount;
62 public void setByteCount(long byteCount) {
63 this.byteCount = byteCount;
66 public double getBitRate() {
70 public void setBitRate(double bitRate) {
71 this.bitRate = bitRate;