All Downloads are FREE. Search and download functionalities are using the official Maven repository.

system.entity.SysTaskLog Maven / Gradle / Ivy

There is a newer version: 1.8.2
Show newest version
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.TaskRunStatus;

@Table(name = "sys_task_log")
@Data
public class SysTaskLog implements Serializable {
    /**
     * ID
     */
    @Id
    @GeneratedValue(generator = "JDBC")
    @Column(name = "id")
    @ApiModelProperty(value = "ID")
    private String id;

    /**
     * 所属任务ID
     */
    @Column(name = "task_id")
    @ApiModelProperty(value = "所属任务ID")
    private Long taskId;

    /**
     * 任务名称
     */
    @Column(name = "name")
    @ApiModelProperty(value = "任务名称")
    private String name;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 执行器: CLASS: | EXEC: | BEAN: | GET: | POST: 
     */
    @Column(name = "actuator")
    @ApiModelProperty(value = "执行器: CLASS: | EXEC: | BEAN: | GET: | POST: ")
    private String actuator;

    /**
     * 触发规则: CRON: | INTERVAL: | MANUAL:
     */
    @Column(name = "schedule")
    @ApiModelProperty(value = "触发规则: CRON: | INTERVAL: | MANUAL:")
    private String schedule;

    /**
     * 参数列表
     */
    @Column(name = "param")
    @ApiModelProperty(value = "参数列表")
    private String param;

    /**
     * 执行状态:加载/停止/运行中/异常
     */
    @Column(name = "run_status")
    @ApiModelProperty(value = "执行状态:加载/停止/运行中/异常")
    private TaskRunStatus runStatus;

    /**
     * 执行主机名称
     */
    @Column(name = "run_hostname")
    @ApiModelProperty(value = "执行主机名称")
    private String runHostname;

    /**
     * 执行环境名称
     */
    @Column(name = "run_env_name")
    @ApiModelProperty(value = "执行环境名称")
    private String runEnvName;

    /**
     * 运行描述
     */
    @Column(name = "run_remarks")
    @ApiModelProperty(value = "运行描述")
    private String runRemarks;

    /**
     * 最后运行开始时间
     */
    @Column(name = "run_time_start")
    @ApiModelProperty(value = "最后运行开始时间")
    private Date runTimeStart;

    /**
     * 最后运行结束时间
     */
    @Column(name = "run_time_end")
    @ApiModelProperty(value = "最后运行结束时间")
    private Date runTimeEnd;

    /**
     * 日志路径
     */
    @Column(name = "log_path")
    @ApiModelProperty(value = "日志路径")
    private String logPath;

    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(", taskId=").append(taskId);
        sb.append(", name=").append(name);
        sb.append(", createTime=").append(createTime);
        sb.append(", actuator=").append(actuator);
        sb.append(", schedule=").append(schedule);
        sb.append(", param=").append(param);
        sb.append(", runStatus=").append(runStatus);
        sb.append(", runHostname=").append(runHostname);
        sb.append(", runEnvName=").append(runEnvName);
        sb.append(", runRemarks=").append(runRemarks);
        sb.append(", runTimeStart=").append(runTimeStart);
        sb.append(", runTimeEnd=").append(runTimeEnd);
        sb.append(", logPath=").append(logPath);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy