/**
* Copyright (c) <2013> <Radware Ltd.> and others. All rights reserved.
*
* This program and the accompanying materials are made available under the terms of the Eclipse Public License
* v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
* @author Gera Goft
* @version 0.1
*/
package org.opendaylight.defense4all.odl.pojos;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Represents the flow that is installed on the network node
* along with the table location, hit counters and timers
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class FlowStat {
public Flow flow;
public long packetCount;
public long byteCount;
public FlowStat () {}
// @JsonProperty("flowStatistic")
public Flow getFlow() {return flow;}
public void setFlow(Flow flow) {this.flow = flow;}
public long getPacketCount() {return packetCount;}
public void setPacketCount(long count) {packetCount = count;}
public long getByteCount() {return byteCount;}
public void setByteCount(long count) {byteCount = count;}
@Override
public String toString() {
return "FlowStat [" + flow.toString() + ", pkt = " + packetCount + ", byte = " + byteCount + "]";
}
}