320 lines
9.5 KiB
Java
320 lines
9.5 KiB
Java
package com.nis.domain.log;
|
||
|
||
import com.google.gson.annotations.Expose;
|
||
import com.nis.domain.BaseEntity;
|
||
import com.nis.util.excel.ExcelField;
|
||
|
||
public class BaseLogEntity<T> extends BaseEntity<T> {
|
||
|
||
private static final long serialVersionUID = 8321337584518281424L;
|
||
@ExcelField(title="cfg_id",sort=1)
|
||
protected Integer cfgId;
|
||
@ExcelField(title="found_time",sort=5)
|
||
protected String foundTime; //发现时间,timestamp
|
||
@ExcelField(title="recv_time",sort=6)
|
||
protected String recvTime; //接收时间,timestamp
|
||
@ExcelField(title="transport_layer_protocol",dictType="LOG_PROTOCOL",sort=30)
|
||
protected String transProto; //协议类型,从字典LOG_PROTOCOL取值
|
||
@ExcelField(title="addr_type",dictType="IP_TYPE",sort=35)
|
||
protected Integer addrType; //ip地址类型,从字典IP_TYPE取值
|
||
@Expose
|
||
@ExcelField(title="server_ip",sort=40)
|
||
protected String dIp; //服务端ip地址
|
||
@Expose
|
||
@ExcelField(title="client_ip",sort=41)
|
||
protected String sIp; //客户端ip地址
|
||
@Expose
|
||
@ExcelField(title="server_port",sort=42)
|
||
protected String dPort; //服务端ip端口
|
||
@Expose
|
||
@ExcelField(title="client_port",sort=43)
|
||
protected String sPort; //客户端ip端口
|
||
|
||
protected Integer service; //配置表的serviceId
|
||
@ExcelField(title="entrance_id",dictType="ENTRANCE",sort=7)
|
||
protected Integer entranceId; //出入口编号
|
||
@ExcelField(title="deviceid",dictType="DEVICE",sort=50)
|
||
protected Integer deviceId; //串联设备编号
|
||
@ExcelField(title="direction",dictType="LOG_DIRECTION",sort=55)
|
||
protected Integer direction; //传输方向 0:域内->域外,1:域外->域内,从字典LOG_DIRECTION取值
|
||
@ExcelField(title="stream_type",dictType="LOG_STREAM_TYPE",sort=65)
|
||
protected Integer streamDir; //流类型 0:c2s;1:s2c;2:double,从字典LOG_STREAMTYPE取值
|
||
@ExcelField(title="clj_ip",sort=27)
|
||
protected String capIp; //处理机IP
|
||
@ExcelField(title="nest_addr_list",sort=66)
|
||
protected String addrList; //嵌套地址列表
|
||
@ExcelField(title="server_locate",sort=67)
|
||
protected String serverLocate;// 服务端地址定位信息
|
||
@ExcelField(title="client_locate",sort=68)
|
||
protected String clientLocate;// 客户端地址定位信息
|
||
@ExcelField(title="user_region",sort=76)
|
||
protected String userRegion; //用户自定义
|
||
@ExcelField(title="s_asn",sort=70)
|
||
protected String sAsn;//客户端ASN
|
||
@ExcelField(title="d_asn",sort=71)
|
||
protected String dAsn;//服务端ASN
|
||
@ExcelField(title="s_subscribe_id",sort=73)
|
||
protected String sSubscribeId;//客户端用户名
|
||
@ExcelField(title="d_subscribe_id",sort=74)
|
||
protected String dSubscribeId;//服务端用户名
|
||
@ExcelField(title="scene_file",sort=77)
|
||
protected String sceneFile;//现场日志文件地址
|
||
|
||
protected Integer functionId;
|
||
@ExcelField(title="action",dictType="SERVICE_ACTION",sort=2)
|
||
protected Integer action;
|
||
|
||
protected String date;//配置界面日志总量查询时间
|
||
//自定义字段
|
||
protected String seltype;//选中类型,页面搜索用
|
||
protected String searchFoundStartTime;//开始时间,格式为yyyy-mm-dd hh24:mi:ss
|
||
protected String searchFoundEndTime;//结束时间,格式同上
|
||
|
||
protected String isLogTotalSearch;//由配置界面跳转日志查询标识
|
||
protected String orderBy;//排序参数
|
||
|
||
//新增字段
|
||
@ExcelField(title="encap_type",dictType="ENCAP_TYPE",sort=52)
|
||
protected Integer encapType;//原始二层封装格式
|
||
@ExcelField(title="link_id",dictType="LINK",sort=51)
|
||
protected Integer linkId;//串联设备链路号
|
||
@ExcelField(title="inner_smac",sort=58)
|
||
protected String innerSmac;//MAC_IN_MAC的内层源MAC
|
||
@ExcelField(title="inner_dmac",sort=59)
|
||
protected String innerDmac;//MAC_IN_MAC的内层目标MAC
|
||
|
||
|
||
|
||
public Integer getEncapType() {
|
||
return encapType;
|
||
}
|
||
public void setEncapType(Integer encapType) {
|
||
this.encapType = encapType;
|
||
}
|
||
public Integer getLinkId() {
|
||
return linkId;
|
||
}
|
||
public void setLinkId(Integer linkId) {
|
||
this.linkId = linkId;
|
||
}
|
||
public String getInnerSmac() {
|
||
return innerSmac;
|
||
}
|
||
public void setInnerSmac(String innerSmac) {
|
||
this.innerSmac = innerSmac;
|
||
}
|
||
public String getInnerDmac() {
|
||
return innerDmac;
|
||
}
|
||
public void setInnerDmac(String innerDmac) {
|
||
this.innerDmac = innerDmac;
|
||
}
|
||
public String getOrderBy() {
|
||
return orderBy;
|
||
}
|
||
public void setOrderBy(String orderBy) {
|
||
this.orderBy = orderBy;
|
||
}
|
||
public String getFoundTime() {
|
||
return foundTime;
|
||
}
|
||
public void setFoundTime(String foundTime) {
|
||
this.foundTime = foundTime;
|
||
}
|
||
public String getRecvTime() {
|
||
return recvTime;
|
||
}
|
||
public void setRecvTime(String recvTime) {
|
||
this.recvTime = recvTime;
|
||
}
|
||
public Integer getCfgId() {
|
||
return cfgId;
|
||
}
|
||
public void setCfgId(Integer cfgId) {
|
||
this.cfgId = cfgId;
|
||
}
|
||
public String getTransProto() {
|
||
return transProto;
|
||
}
|
||
public void setTransProto(String transProto) {
|
||
this.transProto = transProto;
|
||
}
|
||
public Integer getAddrType() {
|
||
return addrType;
|
||
}
|
||
public void setAddrType(Integer addrType) {
|
||
this.addrType = addrType;
|
||
}
|
||
public String getdIp() {
|
||
return dIp;
|
||
}
|
||
public void setdIp(String dIp) {
|
||
this.dIp = dIp;
|
||
}
|
||
public String getsIp() {
|
||
return sIp;
|
||
}
|
||
public void setsIp(String sIp) {
|
||
this.sIp = sIp;
|
||
}
|
||
public String getdPort() {
|
||
return dPort;
|
||
}
|
||
public void setdPort(String dPort) {
|
||
this.dPort = dPort;
|
||
}
|
||
public String getsPort() {
|
||
return sPort;
|
||
}
|
||
public void setsPort(String sPort) {
|
||
this.sPort = sPort;
|
||
}
|
||
public Integer getService() {
|
||
return service;
|
||
}
|
||
public void setService(Integer service) {
|
||
this.service = service;
|
||
}
|
||
public Integer getEntranceId() {
|
||
return entranceId;
|
||
}
|
||
public void setEntranceId(Integer entranceId) {
|
||
this.entranceId = entranceId;
|
||
}
|
||
public Integer getDeviceId() {
|
||
return deviceId;
|
||
}
|
||
public void setDeviceId(Integer deviceId) {
|
||
this.deviceId = deviceId;
|
||
}
|
||
public Integer getDirection() {
|
||
return direction;
|
||
}
|
||
public void setDirection(Integer direction) {
|
||
this.direction = direction;
|
||
}
|
||
public Integer getStreamDir() {
|
||
return streamDir;
|
||
}
|
||
public void setStreamDir(Integer streamDir) {
|
||
this.streamDir = streamDir;
|
||
}
|
||
public String getCapIp() {
|
||
return capIp;
|
||
}
|
||
public void setCapIp(String capIp) {
|
||
this.capIp = capIp;
|
||
}
|
||
public String getAddrList() {
|
||
return addrList;
|
||
}
|
||
public void setAddrList(String addrList) {
|
||
this.addrList = addrList;
|
||
}
|
||
public String getUserRegion() {
|
||
return userRegion;
|
||
}
|
||
public void setUserRegion(String userRegion) {
|
||
this.userRegion = userRegion;
|
||
}
|
||
public Integer getFunctionId() {
|
||
return functionId;
|
||
}
|
||
public void setFunctionId(Integer functionId) {
|
||
this.functionId = functionId;
|
||
}
|
||
public Integer getAction() {
|
||
return action;
|
||
}
|
||
public void setAction(Integer action) {
|
||
this.action = action;
|
||
}
|
||
public String getSeltype() {
|
||
return seltype;
|
||
}
|
||
public void setSeltype(String seltype) {
|
||
this.seltype = seltype;
|
||
}
|
||
public String getSearchFoundStartTime() {
|
||
return searchFoundStartTime;
|
||
}
|
||
public void setSearchFoundStartTime(String searchFoundStartTime) {
|
||
this.searchFoundStartTime = searchFoundStartTime;
|
||
}
|
||
public String getSearchFoundEndTime() {
|
||
return searchFoundEndTime;
|
||
}
|
||
public void setSearchFoundEndTime(String searchFoundEndTime) {
|
||
this.searchFoundEndTime = searchFoundEndTime;
|
||
}
|
||
public String getServerLocate() {
|
||
return serverLocate;
|
||
}
|
||
public void setServerLocate(String serverLocate) {
|
||
this.serverLocate = serverLocate;
|
||
}
|
||
public String getClientLocate() {
|
||
return clientLocate;
|
||
}
|
||
public void setClientLocate(String clientLocate) {
|
||
this.clientLocate = clientLocate;
|
||
}
|
||
public String getsAsn() {
|
||
return sAsn;
|
||
}
|
||
public void setsAsn(String sAsn) {
|
||
this.sAsn = sAsn;
|
||
}
|
||
public String getdAsn() {
|
||
return dAsn;
|
||
}
|
||
public void setdAsn(String dAsn) {
|
||
this.dAsn = dAsn;
|
||
}
|
||
public String getsSubscribeId() {
|
||
return sSubscribeId;
|
||
}
|
||
public void setsSubscribeId(String sSubscribeId) {
|
||
this.sSubscribeId = sSubscribeId;
|
||
}
|
||
public String getdSubscribeId() {
|
||
return dSubscribeId;
|
||
}
|
||
public void setdSubscribeId(String dSubscribeId) {
|
||
this.dSubscribeId = dSubscribeId;
|
||
}
|
||
public String getSceneFile() {
|
||
return sceneFile;
|
||
}
|
||
public void setSceneFile(String sceneFile) {
|
||
this.sceneFile = sceneFile;
|
||
}
|
||
public String getDate() {
|
||
return date;
|
||
}
|
||
public void setDate(String date) {
|
||
this.date = date;
|
||
}
|
||
public String getIsLogTotalSearch() {
|
||
return isLogTotalSearch;
|
||
}
|
||
public void setIsLogTotalSearch(String isLogTotalSearch) {
|
||
this.isLogTotalSearch = isLogTotalSearch;
|
||
}
|
||
@Override
|
||
public String toString() {
|
||
return "BaseLogEntity [cfgId=" + cfgId + ", foundTime=" + foundTime + ", recvTime=" + recvTime + ", transProto="
|
||
+ transProto + ", addrType=" + addrType + ", dIp=" + dIp + ", sIp=" + sIp + ", dPort=" + dPort
|
||
+ ", sPort=" + sPort + ", service=" + service + ", entranceId=" + entranceId + ", deviceId=" + deviceId
|
||
+ ", direction=" + direction + ", streamDir=" + streamDir + ", capIp=" + capIp + ", addrList="
|
||
+ addrList + ", serverLocate=" + serverLocate + ", clientLocate=" + clientLocate + ", userRegion="
|
||
+ userRegion + ", sAsn=" + sAsn + ", dAsn=" + dAsn + ", sSubscribeId=" + sSubscribeId
|
||
+ ", dSubscribeId=" + dSubscribeId + ", sceneFile=" + sceneFile + ", functionId=" + functionId
|
||
+ ", action=" + action + ", date=" + date + ", seltype=" + seltype + ", searchFoundStartTime="
|
||
+ searchFoundStartTime + ", searchFoundEndTime=" + searchFoundEndTime + ", isLogTotalSearch="
|
||
+ isLogTotalSearch + "]";
|
||
}
|
||
|
||
|
||
}
|