com.marklogic.hub.flow.impl.JobStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of marklogic-data-hub Show documentation
Show all versions of marklogic-data-hub Show documentation
Library for Creating an Operational Data Hub on MarkLogic
package com.marklogic.hub.flow.impl;
public enum JobStatus {
STARTED("started"),
FINISHED("finished"),
FINISHED_WITH_ERRORS("finished_with_errors"),
RUNNING("running"),
FAILED("failed"),
STOP_ON_ERROR("stop-on-error"),
CANCELED("canceled");
private final String type;
JobStatus(String type) {
this.type = type;
}
public static JobStatus getJobStatus(String status) {
for (JobStatus jobStatus : JobStatus.values()) {
if (jobStatus.toString().equals(status)) {
return jobStatus;
}
}
return null;
}
public String toString() {
return this.type;
}
//Step Status prefix
public static final String RUNNING_PREFIX = "running step ";
public static final String COMPLETED_PREFIX = "completed step ";
public static final String COMPLETED_WITH_ERRORS_PREFIX = "completed with errors step ";
public static final String STOP_ON_ERROR_PREFIX = "stop on error in step ";
public static final String FAILED_PREFIX = "failed step ";
public static final String CANCELED_PREFIX = "canceled step ";
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy