com.alibaba.schedulerx.JobProperty Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of schedulerx2-spring-boot-starter Show documentation
Show all versions of schedulerx2-spring-boot-starter Show documentation
schedulerx2-spring-boot-starter
package com.alibaba.schedulerx;
import org.springframework.boot.context.properties.ConfigurationProperties;
import com.alibaba.schedulerx.common.domain.ExecuteMode;
import com.alibaba.schedulerx.common.domain.JobType;
/**
* @author xiaomeng.hxm
*
*/
@ConfigurationProperties(prefix = "spring.schedulerx2")
public final class JobProperty {
private String jobName;
private String jobType = JobType.JAVA.getKey();
private String jobModel = ExecuteMode.STANDALONE.getKey();
private String className;
private String content;
private Integer timeType;
private String timeExpression;
private String cron;
private String oneTime;
private String jobParameter;
private String description;
private boolean overwrite = false;
public String getJobType() {
return jobType;
}
public void setJobType(String jobType) {
this.jobType = jobType;
}
public String getJobModel() {
return jobModel;
}
public void setJobModel(String jobModel) {
this.jobModel = jobModel;
}
public String getClassName() {
return className;
}
public void setClassName(String className) {
this.className = className;
}
public String getCron() {
return cron;
}
public void setCron(String cron) {
this.cron = cron;
}
public String getOneTime() {
return oneTime;
}
public void setOneTime(String oneTime) {
this.oneTime = oneTime;
}
public String getJobParameter() {
return jobParameter;
}
public void setJobParameter(String jobParameter) {
this.jobParameter = jobParameter;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public boolean isOverwrite() {
return overwrite;
}
public void setOverwrite(boolean overwrite) {
this.overwrite = overwrite;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getJobName() {
return jobName;
}
public void setJobName(String jobName) {
this.jobName = jobName;
}
public Integer getTimeType() {
return timeType;
}
public void setTimeType(Integer timeType) {
this.timeType = timeType;
}
public String getTimeExpression() {
return timeExpression;
}
public void setTimeExpression(String timeExpression) {
this.timeExpression = timeExpression;
}
}