cn.dceast.platform.task.quartz.JobEntity Maven / Gradle / Ivy
The newest version!
package cn.dceast.platform.task.quartz;
import java.util.Date;
/**
* job entity
* @author zhang
*
*/
public class JobEntity {
//平台1.9 新增1个字段,任务唯一标识
private String taskId;
private String jobId;
private String jobName;
private String jobGroup;
private String cronExpression;
private String jobParam;
private String jobClass;
private Date createTime;
private Date updateTime;
private String jobDescription;
private String appName;
private int priority=5;
private String status;
private boolean stopExecutingWhenException=true;
public String getTaskId() {
return taskId;
}
public void setTaskId(String taskId) {
this.taskId = taskId;
}
public String getJobName() {
return jobName;
}
public void setJobName(String jobName) {
this.jobName = jobName;
}
public String getJobGroup() {
return jobGroup;
}
public void setJobGroup(String jobGroup) {
this.jobGroup = jobGroup;
}
public String getCronExpression() {
return cronExpression;
}
public void setCronExpression(String cronExpression) {
this.cronExpression = cronExpression;
}
public String getJobParam() {
return jobParam;
}
public void setJobParam(String jobParam) {
this.jobParam = jobParam;
}
public String getJobClass() {
return jobClass;
}
public void setJobClass(String jobClass) {
this.jobClass = jobClass;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public String getJobDescription() {
return jobDescription;
}
public void setJobDescription(String jobDescription) {
this.jobDescription = jobDescription;
}
public String getAppName() {
return appName;
}
public void setAppName(String appName) {
this.appName = appName;
}
public int getPriority() {
return priority;
}
public void setPriority(int priority) {
this.priority = priority;
}
public boolean isStopExecutingWhenException() {
return stopExecutingWhenException;
}
public void setStopExecutingWhenException(boolean stopExecutingWhenException) {
this.stopExecutingWhenException = stopExecutingWhenException;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getJobId() {
return jobId;
}
public void setJobId(String jobId) {
this.jobId = jobId;
}
@Override
public String toString() {
StringBuffer sb=new StringBuffer();
sb.append("jobId=").append(jobId).append(",");
sb.append("jobName=").append(jobName).append(",");
sb.append("jobGroup=").append(jobGroup).append(",");
sb.append("cronExpression=").append(cronExpression).append(",");
sb.append("createTime=").append(createTime).append(",");
sb.append("updateTime=").append(updateTime).append(",");
sb.append("jobDescription=").append(jobDescription).append(",");
sb.append("appName=").append(appName).append(",");
sb.append("priority=").append(jobId).append(",");
sb.append("status=").append(status).append(",");
sb.append("stopExecutingWhenException=").append(stopExecutingWhenException);
return sb.toString();
}
}