package eu.dnetlib.data.collective.manager.nh;

/**
 * @author jochen
 *
 */
public class JobInfo {

	public static enum JOBSTATUS{ IDLE, STARTING, ONGOING, CANCELLING, FAILED };
	private boolean active;
	private JOBSTATUS jobStatus = JOBSTATUS.IDLE;
	private String currentNumberOfRecords = "0";
	private String estimatedNumberOfRecords = "0";
	private String startDate = "";
	private String lastUpdate = "";
	private String error = "";

	public void setActive(boolean isActive) {
		this.active = isActive;
	}

	public boolean isActive() {
		return active;
	}

	/**
	 * @param jobStatus the jobStatus to set
	 */
	public void setJobStatus(JOBSTATUS jobStatus) {
		this.jobStatus = jobStatus;
	}

	/**
	 * @return the jobStatus
	 */
	public JOBSTATUS getJobStatus() {
		return jobStatus;
	}

	/**
	 * @param currentNumberOfRecords the currentNumberOfRecords to set
	 */
	public void setCurrentNumberOfRecords(String currentNumberOfRecords) {
		this.currentNumberOfRecords = currentNumberOfRecords;
	}

	/**
	 * @return the currentNumberOfRecords
	 */
	public String getCurrentNumberOfRecords() {
		return currentNumberOfRecords;
	}

	/**
	 * @param estimatedNumberOfRecords the expectedNumberOfRecords to set
	 */
	public void setEstimatedNumberOfRecords(String estimatedNumberOfRecords) {
		this.estimatedNumberOfRecords = estimatedNumberOfRecords;
	}

	/**
	 * @return the expectedNumberOfRecords
	 */
	public String getEstimatedNumberOfRecords() {
		return estimatedNumberOfRecords;
	}


	/**
	 * @param startDate the startDate to set
	 */
	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	/**
	 * @return the startDate
	 */
	public String getStartDate() {
		return startDate;
	}

	/**
	 * @param lastUpdate the lastUpdate to set
	 */
	public void setLastUpdate(String lastUpdate) {
		this.lastUpdate = lastUpdate;
	}

	/**
	 * @return the lastUpdate
	 */
	public String getLastUpdate() {
		return lastUpdate;
	}

	/**
	 * @param error the error to set
	 */
	public void setError(String error) {
		this.error = error;
	}

	/**
	 * @return the error
	 */
	public String getError() {
		return error;
	}

}
