All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mesosphere.metronome.client.model.v1.JobHistory Maven / Gradle / Ivy

There is a newer version: 0.6.3
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy