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

com.hp.autonomy.hod.client.job.JobStatus Maven / Gradle / Ivy

There is a newer version: 0.25.3
Show newest version
/*
 * Copyright 2015-2016 Hewlett-Packard Development Company, L.P.
 * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
 */

package com.hp.autonomy.hod.client.job;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

/**
 * The status of a job from HP Haven OnDemand
 * @param 
 */
@Data
public class JobStatus {

    /**
     * @return The ID of the job
     */
    private final String jobId;

    /**
     * @return The status of the job
     */
    private final Status status;

    /**
     * @return A list of the actions which make up the job. Each action has its own status and result
     */
    private final List> actions;

    @JsonCreator
    public JobStatus(@JsonProperty("jobID") final String jobId, @JsonProperty("status") final Status status, @JsonProperty("actions") final List> actions) {
        this.jobId = jobId;
        this.status = status;
        this.actions = actions;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy