system.entity.SysTaskJob Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of task Show documentation
Show all versions of task Show documentation
jishi series products task on java
package system.entity;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import lombok.Data;
import system.task.defined.TaskInstruction;
import system.task.defined.TaskStatus;
@Table(name = "sys_task_job")
@Data
public class SysTaskJob implements Serializable {
/**
* ID
*/
@Id
@GeneratedValue(generator = "JDBC")
@Column(name = "id")
@ApiModelProperty(value = "ID")
private Long id;
/**
* 任务名称
*/
@Column(name = "name")
@ApiModelProperty(value = "任务名称")
private String name;
/**
* 创建时间
*/
@Column(name = "create_time")
@ApiModelProperty(value = "创建时间")
private Date createTime;
/**
* 开始时间
*/
@Column(name = "start_time")
@ApiModelProperty(value = "开始时间")
private Date startTime;
/**
* 终止时间
*/
@Column(name = "expire_time")
@ApiModelProperty(value = "终止时间")
private Date expireTime;
/**
* 任务群组
*/
@Column(name = "group_name")
@ApiModelProperty(value = "任务群组")
private String groupName;
/**
* 描述
*/
@Column(name = "description")
@ApiModelProperty(value = "描述")
private String description;
/**
* 执行器: CLASS: | EXEC: | BEAN: | GET: | POST:
*/
@Column(name = "actuator")
@ApiModelProperty(value = "执行器: CLASS: | EXEC: | BEAN: | GET: | POST: ")
private String actuator;
/**
* 触发规则: CRON表达式
*/
@Column(name = "schedule")
@ApiModelProperty(value = "触发规则: CRON表达式")
private String schedule;
/**
* 触发异常规则: NOW | NEXT
*/
@Column(name = "instruction")
@ApiModelProperty(value = " 触发异常规则: NOW | NEXT")
private TaskInstruction instruction;
/**
* 参数列表
*/
@Column(name = "param")
@ApiModelProperty(value = "参数列表")
private String param;
/**
* 任务状态: 禁用/启用/暂停
*/
@Column(name = "status")
@ApiModelProperty(value = "任务状态: 禁用/启用/暂停")
private TaskStatus status;
/**
* 运行主机
*/
@Column(name = "hostname")
@ApiModelProperty(value = "运行主机")
private String hostname;
/**
* 运行环境
*/
@Column(name = "env_name")
@ApiModelProperty(value = "运行环境")
private String envName;
private static final long serialVersionUID = 1L;
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", name=").append(name);
sb.append(", createTime=").append(createTime);
sb.append(", startTime=").append(startTime);
sb.append(", expireTime=").append(expireTime);
sb.append(", groupName=").append(groupName);
sb.append(", description=").append(description);
sb.append(", actuator=").append(actuator);
sb.append(", schedule=").append(schedule);
sb.append(", instruction=").append(instruction);
sb.append(", param=").append(param);
sb.append(", status=").append(status);
sb.append(", hostname=").append(hostname);
sb.append(", envName=").append(envName);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}