112 lines
2.7 KiB
Java
112 lines
2.7 KiB
Java
package com.nis.domain.dashboard;
|
|
|
|
import java.math.BigInteger;
|
|
|
|
import com.nis.util.excel.ExcelField;
|
|
|
|
public class TrafficIpActiveStatistic{
|
|
Integer id;
|
|
@ExcelField(title="IP",sort=10,type=1)
|
|
String ipAddr;
|
|
@ExcelField(title="Area",dictType="ENTRANCE",sort=20,type=1)
|
|
String areaId;
|
|
@ExcelField(title="Link Times",sort=52,type=1)
|
|
Long linkNum;
|
|
@ExcelField(title="C2S(Pkt)",sort=60,type=1)
|
|
Long c2sPktNum;
|
|
@ExcelField(title="S2C(Pkt)",sort=70,type=1)
|
|
Long s2cPktNum;
|
|
@ExcelField(title="C2S(Byte)",sort=40,type=1)
|
|
Long c2sByteLen;
|
|
@ExcelField(title="S2C(Byte)",sort=50,type=1)
|
|
Long s2cByteLen;
|
|
@ExcelField(title="Statistic Time",sort=80,type=1)
|
|
String statTime;
|
|
private String _byte;
|
|
private String _packet;
|
|
private String avgByte;
|
|
private String avgPacket;
|
|
@ExcelField(title="Byte",sort=51,type=1)
|
|
public String get_byte() {
|
|
return BigInteger.valueOf(this.getC2sByteLen()).add(BigInteger.valueOf(this.getS2cByteLen())).toString();
|
|
}
|
|
public void set_byte(String _byte) {
|
|
this._byte = _byte;
|
|
}
|
|
@ExcelField(title="Packet",sort=71,type=1)
|
|
public String get_packet() {
|
|
return BigInteger.valueOf(this.getC2sPktNum()).add(BigInteger.valueOf(this.s2cPktNum)).toString();
|
|
}
|
|
public void set_packet(String _packet) {
|
|
this._packet = _packet;
|
|
}
|
|
public Integer getId() {
|
|
return id;
|
|
}
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
public String getStatTime() {
|
|
return statTime;
|
|
}
|
|
public void setStatTime(String statTime) {
|
|
this.statTime = statTime;
|
|
}
|
|
public TrafficIpActiveStatistic(){
|
|
super();
|
|
}
|
|
public String getIpAddr() {
|
|
return ipAddr;
|
|
}
|
|
public void setIpAddr(String ipAddr) {
|
|
this.ipAddr = ipAddr;
|
|
}
|
|
public String getAreaId() {
|
|
return areaId;
|
|
}
|
|
public void setAreaId(String areaId) {
|
|
this.areaId = areaId;
|
|
}
|
|
public Long getLinkNum() {
|
|
return linkNum;
|
|
}
|
|
public void setLinkNum(Long linkNum) {
|
|
this.linkNum = linkNum;
|
|
}
|
|
public Long getC2sPktNum() {
|
|
return c2sPktNum;
|
|
}
|
|
public void setC2sPktNum(Long c2sPktNum) {
|
|
this.c2sPktNum = c2sPktNum;
|
|
}
|
|
public Long getS2cPktNum() {
|
|
return s2cPktNum;
|
|
}
|
|
public void setS2cPktNum(Long s2cPktNum) {
|
|
this.s2cPktNum = s2cPktNum;
|
|
}
|
|
public Long getC2sByteLen() {
|
|
return c2sByteLen;
|
|
}
|
|
public void setC2sByteLen(Long c2sByteLen) {
|
|
this.c2sByteLen = c2sByteLen;
|
|
}
|
|
public Long getS2cByteLen() {
|
|
return s2cByteLen;
|
|
}
|
|
public void setS2cByteLen(Long s2cByteLen) {
|
|
this.s2cByteLen = s2cByteLen;
|
|
}
|
|
public String getAvgByte() {
|
|
return avgByte;
|
|
}
|
|
public void setAvgByte(String avgByte) {
|
|
this.avgByte = avgByte;
|
|
}
|
|
public String getAvgPacket() {
|
|
return avgPacket;
|
|
}
|
|
public void setAvgPacket(String avgPacket) {
|
|
this.avgPacket = avgPacket;
|
|
}
|
|
} |