/**
 * 
 */
package com.vip.saturn.job.console.domain;


/**
 * @author chembo.huang
 *
 */
public class AbnormalJob {
	
	private static final long serialVersionUID = 1L;
	
	private final String jobName;
	
	private final String domainName;
	
	/** name and namespace */
	private final String nns;
	
	/** degree of the domain */
	private final String degree;
	
	private String jobDegree;

	private String timeZone;
	
	private long nextFireTime;

	private String nextFireTimeWithTimeZoneFormat;
	
	private String cause;
	
	private transient long nextFireTimeAfterEnabledMtime;
	
	public AbnormalJob(String jobName, String domainName, String nns, String degree){
		this.jobName = jobName;
		this.domainName = domainName;
		this.nns = nns;
		this.degree = degree;
	}
	
	public enum Cause {
		NO_SHARDS, NOT_RUN, EXECUTORS_NOT_READY
	}

	public String getJobDegree() {
		return jobDegree;
	}

	public void setJobDegree(String jobDegree) {
		this.jobDegree = jobDegree;
	}

	public String getTimeZone() {
		return timeZone;
	}

	public void setTimeZone(String timeZone) {
		this.timeZone = timeZone;
	}

	public long getNextFireTime() {
		return nextFireTime;
	}

	public void setNextFireTime(long nextFireTime) {
		this.nextFireTime = nextFireTime;
	}

	public String getNextFireTimeWithTimeZoneFormat() {
		return nextFireTimeWithTimeZoneFormat;
	}

	public void setNextFireTimeWithTimeZoneFormat(String nextFireTimeWithTimeZoneFormat) {
		this.nextFireTimeWithTimeZoneFormat = nextFireTimeWithTimeZoneFormat;
	}

	public String getCause() {
		return cause;
	}

	public void setCause(String cause) {
		this.cause = cause;
	}

	public String getJobName() {
		return jobName;
	}

	public String getDomainName() {
		return domainName;
	}

	public String getNns() {
		return nns;
	}

	public String getDegree() {
		return degree;
	}

	public long getNextFireTimeAfterEnabledMtime() {
		return nextFireTimeAfterEnabledMtime;
	}

	public void setNextFireTimeAfterEnabledMtime(long nextFireTimeAfterEnabledMtime) {
		this.nextFireTimeAfterEnabledMtime = nextFireTimeAfterEnabledMtime;
	}
	
}

@@ -2069,12 +2069,465 @@
 ime;%0A%09%7D%0A
-%09
+%0A%09@Override%0A%09public String toString() %7B%0A%09%09return %22AbnormalJob%7B%22 +%0A%09%09%09%09%22jobName='%22 + jobName + '%5C'' +%0A%09%09%09%09%22, domainName='%22 + domainName + '%5C'' +%0A%09%09%09%09%22, nns='%22 + nns + '%5C'' +%0A%09%09%09%09%22, degree='%22 + degree + '%5C'' +%0A%09%09%09%09%22, jobDegree='%22 + jobDegree + '%5C'' +%0A%09%09%09%09%22, timeZone='%22 + timeZone + '%5C'' +%0A%09%09%09%09%22, nextFireTime=%22 + nextFireTime +%0A%09%09%09%09%22, nextFireTimeWithTimeZoneFormat='%22 + nextFireTimeWithTimeZoneFormat + '%5C'' +%0A%09%09%09%09%22, cause='%22 + cause + '%5C'' +%0A%09%09%09%09'%7D';%0A%09%7D
 %0A%7D%0A

Add AbnormalJob toString() method #125