|
|
|
@ -14,13 +14,9 @@
|
|
|
|
|
* See the License for the specific language governing permissions and |
|
|
|
|
* limitations under the License. |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
package org.apache.dolphinscheduler.dao.entity; |
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType; |
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableField; |
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableId; |
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableName; |
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat; |
|
|
|
|
import org.apache.dolphinscheduler.common.enums.FailureStrategy; |
|
|
|
|
import org.apache.dolphinscheduler.common.enums.Priority; |
|
|
|
|
import org.apache.dolphinscheduler.common.enums.ReleaseState; |
|
|
|
@ -28,6 +24,12 @@ import org.apache.dolphinscheduler.common.enums.WarningType;
|
|
|
|
|
|
|
|
|
|
import java.util.Date; |
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType; |
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableField; |
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableId; |
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableName; |
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* schedule |
|
|
|
|
* |
|
|
|
@ -35,7 +37,7 @@ import java.util.Date;
|
|
|
|
|
@TableName("t_ds_schedules") |
|
|
|
|
public class Schedule { |
|
|
|
|
|
|
|
|
|
@TableId(value="id", type=IdType.AUTO) |
|
|
|
|
@TableId(value = "id", type = IdType.AUTO) |
|
|
|
|
private int id; |
|
|
|
|
/** |
|
|
|
|
* process definition id |
|
|
|
@ -63,15 +65,21 @@ public class Schedule {
|
|
|
|
|
/** |
|
|
|
|
* schedule start time |
|
|
|
|
*/ |
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8") |
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|
|
|
|
private Date startTime; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* schedule end time |
|
|
|
|
*/ |
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8") |
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|
|
|
|
private Date endTime; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* timezoneId |
|
|
|
|
* <p>see {@link java.util.TimeZone#getTimeZone(String)} |
|
|
|
|
*/ |
|
|
|
|
private String timezoneId; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* crontab expression |
|
|
|
|
*/ |
|
|
|
@ -90,13 +98,13 @@ public class Schedule {
|
|
|
|
|
/** |
|
|
|
|
* create time |
|
|
|
|
*/ |
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8") |
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|
|
|
|
private Date createTime; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* update time |
|
|
|
|
*/ |
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8") |
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|
|
|
|
private Date updateTime; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -139,8 +147,6 @@ public class Schedule {
|
|
|
|
|
this.warningGroupId = warningGroupId; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Schedule() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -152,10 +158,7 @@ public class Schedule {
|
|
|
|
|
this.projectName = projectName; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Date getStartTime() { |
|
|
|
|
|
|
|
|
|
return startTime; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -171,6 +174,14 @@ public class Schedule {
|
|
|
|
|
this.endTime = endTime; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public String getTimezoneId() { |
|
|
|
|
return timezoneId; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setTimezoneId(String timezoneId) { |
|
|
|
|
this.timezoneId = timezoneId; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public String getCrontab() { |
|
|
|
|
return crontab; |
|
|
|
|
} |
|
|
|
@ -203,7 +214,6 @@ public class Schedule {
|
|
|
|
|
this.createTime = createTime; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ReleaseState getReleaseState() { |
|
|
|
|
return releaseState; |
|
|
|
|
} |
|
|
|
@ -212,8 +222,6 @@ public class Schedule {
|
|
|
|
|
this.releaseState = releaseState; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public int getProcessDefinitionId() { |
|
|
|
|
return processDefinitionId; |
|
|
|
|
} |
|
|
|
@ -280,26 +288,27 @@ public class Schedule {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String toString() { |
|
|
|
|
return "Schedule{" + |
|
|
|
|
"id=" + id + |
|
|
|
|
", processDefinitionId=" + processDefinitionId + |
|
|
|
|
", processDefinitionName='" + processDefinitionName + '\'' + |
|
|
|
|
", projectName='" + projectName + '\'' + |
|
|
|
|
", description='" + definitionDescription + '\'' + |
|
|
|
|
", startTime=" + startTime + |
|
|
|
|
", endTime=" + endTime + |
|
|
|
|
", crontab='" + crontab + '\'' + |
|
|
|
|
", failureStrategy=" + failureStrategy + |
|
|
|
|
", warningType=" + warningType + |
|
|
|
|
", createTime=" + createTime + |
|
|
|
|
", updateTime=" + updateTime + |
|
|
|
|
", userId=" + userId + |
|
|
|
|
", userName='" + userName + '\'' + |
|
|
|
|
", releaseState=" + releaseState + |
|
|
|
|
", warningGroupId=" + warningGroupId + |
|
|
|
|
", processInstancePriority=" + processInstancePriority + |
|
|
|
|
", workerGroup='" + workerGroup + '\'' + |
|
|
|
|
'}'; |
|
|
|
|
return "Schedule{" |
|
|
|
|
+ "id=" + id |
|
|
|
|
+ ", processDefinitionId=" + processDefinitionId |
|
|
|
|
+ ", processDefinitionName='" + processDefinitionName + '\'' |
|
|
|
|
+ ", projectName='" + projectName + '\'' |
|
|
|
|
+ ", description='" + definitionDescription + '\'' |
|
|
|
|
+ ", startTime=" + startTime |
|
|
|
|
+ ", endTime=" + endTime |
|
|
|
|
+ ", timezoneId='" + timezoneId + +'\'' |
|
|
|
|
+ ", crontab='" + crontab + '\'' |
|
|
|
|
+ ", failureStrategy=" + failureStrategy |
|
|
|
|
+ ", warningType=" + warningType |
|
|
|
|
+ ", createTime=" + createTime |
|
|
|
|
+ ", updateTime=" + updateTime |
|
|
|
|
+ ", userId=" + userId |
|
|
|
|
+ ", userName='" + userName + '\'' |
|
|
|
|
+ ", releaseState=" + releaseState |
|
|
|
|
+ ", warningGroupId=" + warningGroupId |
|
|
|
|
+ ", processInstancePriority=" + processInstancePriority |
|
|
|
|
+ ", workerGroup='" + workerGroup + '\'' |
|
|
|
|
+ '}'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public String getDefinitionDescription() { |
|
|
|
|