package com.zdjizhi.common; import java.io.Serializable; import java.util.Objects; public class DosSketchLog implements Serializable { private String common_sled_ip; private String common_data_center; private long sketch_start_time; private long sketch_duration; private String attack_type; private String source_ip; private String destination_ip; private long sketch_sessions; private long sketch_packets; private long sketch_bytes; @Override public String toString() { return "DosSketchLog{" + "common_sled_ip='" + common_sled_ip + '\'' + ", common_data_center='" + common_data_center + '\'' + ", sketch_start_time=" + sketch_start_time + ", sketch_duration=" + sketch_duration + ", attack_type='" + attack_type + '\'' + ", source_ip='" + source_ip + '\'' + ", destination_ip='" + destination_ip + '\'' + ", sketch_sessions=" + sketch_sessions + ", sketch_packets=" + sketch_packets + ", sketch_bytes=" + sketch_bytes + '}'; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof DosSketchLog)) { return false; } DosSketchLog sketchLog = (DosSketchLog) o; return getSketch_start_time() == sketchLog.getSketch_start_time() && getSketch_duration() == sketchLog.getSketch_duration() && getSketch_sessions() == sketchLog.getSketch_sessions() && getSketch_packets() == sketchLog.getSketch_packets() && getSketch_bytes() == sketchLog.getSketch_bytes() && Objects.equals(getCommon_sled_ip(), sketchLog.getCommon_sled_ip()) && Objects.equals(getCommon_data_center(), sketchLog.getCommon_data_center()) && Objects.equals(getAttack_type(), sketchLog.getAttack_type()) && Objects.equals(getSource_ip(), sketchLog.getSource_ip()) && Objects.equals(getDestination_ip(), sketchLog.getDestination_ip()); } @Override public int hashCode() { return Objects.hash(getCommon_sled_ip(), getCommon_data_center(), getSketch_start_time(), getSketch_duration(), getAttack_type(), getSource_ip(), getDestination_ip(), getSketch_sessions(), getSketch_packets(), getSketch_bytes()); } public String getCommon_sled_ip() { return common_sled_ip; } public void setCommon_sled_ip(String common_sled_ip) { this.common_sled_ip = common_sled_ip; } public String getCommon_data_center() { return common_data_center; } public void setCommon_data_center(String common_data_center) { this.common_data_center = common_data_center; } public long getSketch_start_time() { return sketch_start_time; } public void setSketch_start_time(long sketch_start_time) { this.sketch_start_time = sketch_start_time; } public long getSketch_duration() { return sketch_duration; } public void setSketch_duration(long sketch_duration) { this.sketch_duration = sketch_duration; } public String getAttack_type() { return attack_type; } public void setAttack_type(String attack_type) { this.attack_type = attack_type; } public String getSource_ip() { return source_ip; } public void setSource_ip(String source_ip) { this.source_ip = source_ip; } public String getDestination_ip() { return destination_ip; } public void setDestination_ip(String destination_ip) { this.destination_ip = destination_ip; } public long getSketch_sessions() { return sketch_sessions; } public void setSketch_sessions(long sketch_sessions) { this.sketch_sessions = sketch_sessions; } public long getSketch_packets() { return sketch_packets; } public void setSketch_packets(long sketch_packets) { this.sketch_packets = sketch_packets; } public long getSketch_bytes() { return sketch_bytes; } public void setSketch_bytes(long sketch_bytes) { this.sketch_bytes = sketch_bytes; } }