arranging
This commit is contained in:
@@ -1,92 +0,0 @@
|
||||
package com.loafle.overflow.model.discovery;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by snoop on 17. 9. 29.
|
||||
*/
|
||||
public class DiscoveryStartInfo {
|
||||
String startIpv4;
|
||||
String endIPv4;
|
||||
String excludeIpv4;
|
||||
|
||||
String startIpv6;
|
||||
String endIPv6;
|
||||
String excludeIpv6;
|
||||
|
||||
String startPort;
|
||||
String endPort;
|
||||
List<String> services;
|
||||
|
||||
public String getStartIpv4() {
|
||||
return startIpv4;
|
||||
}
|
||||
|
||||
public void setStartIpv4(String startIpv4) {
|
||||
this.startIpv4 = startIpv4;
|
||||
}
|
||||
|
||||
public String getEndIPv4() {
|
||||
return endIPv4;
|
||||
}
|
||||
|
||||
public void setEndIPv4(String endIPv4) {
|
||||
this.endIPv4 = endIPv4;
|
||||
}
|
||||
|
||||
public String getExcludeIpv4() {
|
||||
return excludeIpv4;
|
||||
}
|
||||
|
||||
public void setExcludeIpv4(String excludeIpv4) {
|
||||
this.excludeIpv4 = excludeIpv4;
|
||||
}
|
||||
|
||||
public String getStartIpv6() {
|
||||
return startIpv6;
|
||||
}
|
||||
|
||||
public void setStartIpv6(String startIpv6) {
|
||||
this.startIpv6 = startIpv6;
|
||||
}
|
||||
|
||||
public String getEndIPv6() {
|
||||
return endIPv6;
|
||||
}
|
||||
|
||||
public void setEndIPv6(String endIPv6) {
|
||||
this.endIPv6 = endIPv6;
|
||||
}
|
||||
|
||||
public String getExcludeIpv6() {
|
||||
return excludeIpv6;
|
||||
}
|
||||
|
||||
public void setExcludeIpv6(String excludeIpv6) {
|
||||
this.excludeIpv6 = excludeIpv6;
|
||||
}
|
||||
|
||||
public String getStartPort() {
|
||||
return startPort;
|
||||
}
|
||||
|
||||
public void setStartPort(String startPort) {
|
||||
this.startPort = startPort;
|
||||
}
|
||||
|
||||
public String getEndPort() {
|
||||
return endPort;
|
||||
}
|
||||
|
||||
public void setEndPort(String endPort) {
|
||||
this.endPort = endPort;
|
||||
}
|
||||
|
||||
public List<String> getServices() {
|
||||
return services;
|
||||
}
|
||||
|
||||
public void setServices(List<String> services) {
|
||||
this.services = services;
|
||||
}
|
||||
}
|
||||
@@ -1,147 +0,0 @@
|
||||
package com.loafle.overflow.model.probe;
|
||||
|
||||
import com.loafle.overflow.model.meta.MetaProbeTaskType;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "PROBE_TASK", schema = "public")
|
||||
public class ProbeTask {
|
||||
private Long id;
|
||||
private MetaProbeTaskType metaProbeTaskType;
|
||||
private Probe probe;
|
||||
private String data;
|
||||
private Date createDate;
|
||||
private Date sendDate;
|
||||
private Date startDate;
|
||||
private Date endDate;
|
||||
private Boolean succeed;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "META_PROBE_TASK_TYPE_ID", nullable = false)
|
||||
public MetaProbeTaskType getMetaProbeTaskType() {
|
||||
return metaProbeTaskType;
|
||||
}
|
||||
|
||||
public void setMetaProbeTaskType(MetaProbeTaskType metaProbeTaskType) {
|
||||
this.metaProbeTaskType = metaProbeTaskType;
|
||||
}
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "PROBE_ID", nullable = false)
|
||||
public Probe getProbe() {
|
||||
return probe;
|
||||
}
|
||||
|
||||
public void setProbe(Probe probe) {
|
||||
this.probe = probe;
|
||||
}
|
||||
|
||||
@Column(name = "DATA", nullable = true, length = 255)
|
||||
public String getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(String data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
|
||||
public Date getCreateDate() {
|
||||
return createDate;
|
||||
}
|
||||
|
||||
public void setCreateDate(Date createDate) {
|
||||
this.createDate = createDate;
|
||||
}
|
||||
|
||||
@Column(name = "SEND_DATE", nullable = true)
|
||||
public Date getSendDate() {
|
||||
return sendDate;
|
||||
}
|
||||
|
||||
public void setSendDate(Date sendDate) {
|
||||
this.sendDate = sendDate;
|
||||
}
|
||||
|
||||
@Column(name = "START_DATE", nullable = true)
|
||||
public Date getStartDate() {
|
||||
return startDate;
|
||||
}
|
||||
|
||||
public void setStartDate(Date startDate) {
|
||||
this.startDate = startDate;
|
||||
}
|
||||
|
||||
@Column(name = "END_DATE", nullable = true)
|
||||
public Date getEndDate() {
|
||||
return endDate;
|
||||
}
|
||||
|
||||
public void setEndDate(Date endDate) {
|
||||
this.endDate = endDate;
|
||||
}
|
||||
|
||||
@Column(name = "SUCCEED", nullable = true)
|
||||
public Boolean getSucceed() {
|
||||
return succeed;
|
||||
}
|
||||
|
||||
public void setSucceed(Boolean succeed) {
|
||||
this.succeed = succeed;
|
||||
}
|
||||
|
||||
// @Override
|
||||
// public boolean equals(Object o) {
|
||||
// if (this == o) return true;
|
||||
// if (o == null || getClass() != o.getClass()) return false;
|
||||
//
|
||||
// ProbeTask that = (ProbeTask) o;
|
||||
//
|
||||
// if (id != that.id) return false;
|
||||
// if (typeId != that.typeId) return false;
|
||||
// if (probeId != that.probeId) return false;
|
||||
// if (data != null ? !data.equals(that.data) : that.data != null) return false;
|
||||
// if (createDate != null ? !createDate.equals(that.createDate) :
|
||||
// that.createDate != null) return false;
|
||||
// if (sendDate != null ? !sendDate.equals(that.sendDate) : that.sendDate !=
|
||||
// null) return false;
|
||||
// if (startDate != null ? !startDate.equals(that.startDate) : that.startDate !=
|
||||
// null) return false;
|
||||
// if (endDate != null ? !endDate.equals(that.endDate) : that.endDate != null)
|
||||
// return false;
|
||||
// if (succeed != null ? !succeed.equals(that.succeed) : that.succeed != null)
|
||||
// return false;
|
||||
//
|
||||
// return true;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public int hashCode() {
|
||||
// int result = (int) (id ^ (id >>> 32));
|
||||
// result = 31 * result + (int) typeId;
|
||||
// result = 31 * result + (int) (probeId ^ (probeId >>> 32));
|
||||
// result = 31 * result + (data != null ? data.hashCode() : 0);
|
||||
// result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
|
||||
// result = 31 * result + (sendDate != null ? sendDate.hashCode() : 0);
|
||||
// result = 31 * result + (startDate != null ? startDate.hashCode() : 0);
|
||||
// result = 31 * result + (endDate != null ? endDate.hashCode() : 0);
|
||||
// result = 31 * result + (succeed != null ? succeed.hashCode() : 0);
|
||||
// return result;
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user