mesosphere.metronome.client.model.v1.JobHistory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of marathon-client Show documentation
Show all versions of marathon-client Show documentation
A Java API client for Mesosphere's Marathon.
package mesosphere.metronome.client.model.v1;
import java.util.ArrayList;
import java.util.List;
import mesosphere.client.common.ModelUtils;
public class JobHistory extends JobHistorySummary {
private List successfulFinishedRuns;
private List failedFinishedRuns;
public List getSuccessfulFinishedRuns() {
return successfulFinishedRuns;
}
public void addSuccessfulFinishedRun(JobRunSummary successfulFinishedRun) {
if (this.successfulFinishedRuns == null) {
this.successfulFinishedRuns = new ArrayList<>();
}
this.successfulFinishedRuns.add(successfulFinishedRun);
}
public void setSuccessfulFinishedRuns(List successfulFinishedRuns) {
this.successfulFinishedRuns = successfulFinishedRuns;
}
public List getFailedFinishedRuns() {
return failedFinishedRuns;
}
public void addFailedFinishedRun(JobRunSummary failedFinishedRun) {
if (this.failedFinishedRuns == null) {
this.failedFinishedRuns = new ArrayList<>();
}
this.failedFinishedRuns.add(failedFinishedRun);
}
public void setFailedFinishedRuns(List failedFinishedRuns) {
this.failedFinishedRuns = failedFinishedRuns;
}
@Override
public String toString() {
return ModelUtils.toString(this);
}
}