uw.task.entity.TaskCronerConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of uw-task Show documentation
Show all versions of uw-task Show documentation
uw-task包是一个分布式任务框架,通过uw-task可以快速构建基于docker的分布式任务体系,同时支持基于influx的任务运维监控。
The newest version!
package uw.task.entity;
import java.io.Serializable;
/**
* taskCronerConfig实体类。
*
*
* @author axeon
* @version $Revision: 1.00 $ $Date: 2017-05-03 16:51:06
*/
public class TaskCronerConfig implements Serializable{
private static final long serialVersionUID = 1L;
private long id = -1;
/**
* 执行类信息
*/
private String taskClass;
/**
* 任务名称
*/
private String taskName;
/**
* 任务描述
*/
private String taskDesc;
/**
* cron表达式,默认5秒一次。
*/
private String cron = "*/5 * * * * ?";
/**
* 0随意执行,1全局唯一执行
*/
private int runType = 1;
/**
* 运行目标,默认不指定
*/
private String runTarget = "";
public TaskCronerConfig() {
}
/**
* @return the id
*/
public long getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(long id) {
this.id = id;
}
/**
* @return the taskName
*/
public String getTaskName() {
return taskName;
}
/**
* @param taskName the taskName to set
*/
public void setTaskName(String taskName) {
this.taskName = taskName;
}
/**
* @return the taskDesc
*/
public String getTaskDesc() {
return taskDesc;
}
/**
* @param taskDesc the taskDesc to set
*/
public void setTaskDesc(String taskDesc) {
this.taskDesc = taskDesc;
}
/**
* @return the taskClass
*/
public String getTaskClass() {
return taskClass;
}
/**
* @param taskClass the taskClass to set
*/
public void setTaskClass(String taskClass) {
this.taskClass = taskClass;
}
/**
* @return the cron
*/
public String getCron() {
return cron;
}
/**
* @param cron the cron to set
*/
public void setCron(String cron) {
this.cron = cron;
}
/**
* @return the runType
*/
public int getRunType() {
return runType;
}
/**
* @param runType the runType to set
*/
public void setRunType(int runType) {
this.runType = runType;
}
/**
* @return the runTarget
*/
public String getRunTarget() {
return runTarget;
}
/**
* @param runTarget the runTarget to set
*/
public void setRunTarget(String runTarget) {
this.runTarget = runTarget;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy