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

org.apache.airavata.ComputingEndpoint Maven / Gradle / Ivy

The newest version!

package org.apache.airavata;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonValue;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
    "Staging",
    "JobDescription",
    "TotalJobs",
    "RunningJobs",
    "WaitingJobs",
    "StagingJobs",
    "SuspendedJobs",
    "PreLRMSWaitingJobs"
})
public class ComputingEndpoint {

    /**
     * Supported file staging functionality - Staging_t
     * 
     */
    @JsonProperty("Staging")
    private ComputingEndpoint.Staging staging;
    /**
     * Supported job description languages - JobDescription_t (open Enumeration)
     * 
     */
    @JsonProperty("JobDescription")
    private List jobDescription = new ArrayList();
    /**
     * The total number of Grid jobs known to the system
     * 
     */
    @JsonProperty("TotalJobs")
    private Integer totalJobs;
    /**
     * The number of Grid jobs which are running in an ExecutionEnvironment
     * 
     */
    @JsonProperty("RunningJobs")
    private Integer runningJobs;
    /**
     * The number of Grid jobs which are waiting to start executing
     * 
     */
    @JsonProperty("WaitingJobs")
    private Integer waitingJobs;
    /**
     * The number of Grid jobs staging files before or after execution
     * 
     */
    @JsonProperty("StagingJobs")
    private Integer stagingJobs;
    /**
     * The number of Grid jobs that started to execute, but are now suspended
     * 
     */
    @JsonProperty("SuspendedJobs")
    private Integer suspendedJobs;
    /**
     * The number of Grid jobs managed by the Grid software, but not yet passed to the LRMS
     * 
     */
    @JsonProperty("PreLRMSWaitingJobs")
    private Integer preLRMSWaitingJobs;
    private Map additionalProperties = new HashMap();

    /**
     * Supported file staging functionality - Staging_t
     * 
     */
    @JsonProperty("Staging")
    public ComputingEndpoint.Staging getStaging() {
        return staging;
    }

    /**
     * Supported file staging functionality - Staging_t
     * 
     */
    @JsonProperty("Staging")
    public void setStaging(ComputingEndpoint.Staging staging) {
        this.staging = staging;
    }

    /**
     * Supported job description languages - JobDescription_t (open Enumeration)
     * 
     */
    @JsonProperty("JobDescription")
    public List getJobDescription() {
        return jobDescription;
    }

    /**
     * Supported job description languages - JobDescription_t (open Enumeration)
     * 
     */
    @JsonProperty("JobDescription")
    public void setJobDescription(List jobDescription) {
        this.jobDescription = jobDescription;
    }

    /**
     * The total number of Grid jobs known to the system
     * 
     */
    @JsonProperty("TotalJobs")
    public Integer getTotalJobs() {
        return totalJobs;
    }

    /**
     * The total number of Grid jobs known to the system
     * 
     */
    @JsonProperty("TotalJobs")
    public void setTotalJobs(Integer totalJobs) {
        this.totalJobs = totalJobs;
    }

    /**
     * The number of Grid jobs which are running in an ExecutionEnvironment
     * 
     */
    @JsonProperty("RunningJobs")
    public Integer getRunningJobs() {
        return runningJobs;
    }

    /**
     * The number of Grid jobs which are running in an ExecutionEnvironment
     * 
     */
    @JsonProperty("RunningJobs")
    public void setRunningJobs(Integer runningJobs) {
        this.runningJobs = runningJobs;
    }

    /**
     * The number of Grid jobs which are waiting to start executing
     * 
     */
    @JsonProperty("WaitingJobs")
    public Integer getWaitingJobs() {
        return waitingJobs;
    }

    /**
     * The number of Grid jobs which are waiting to start executing
     * 
     */
    @JsonProperty("WaitingJobs")
    public void setWaitingJobs(Integer waitingJobs) {
        this.waitingJobs = waitingJobs;
    }

    /**
     * The number of Grid jobs staging files before or after execution
     * 
     */
    @JsonProperty("StagingJobs")
    public Integer getStagingJobs() {
        return stagingJobs;
    }

    /**
     * The number of Grid jobs staging files before or after execution
     * 
     */
    @JsonProperty("StagingJobs")
    public void setStagingJobs(Integer stagingJobs) {
        this.stagingJobs = stagingJobs;
    }

    /**
     * The number of Grid jobs that started to execute, but are now suspended
     * 
     */
    @JsonProperty("SuspendedJobs")
    public Integer getSuspendedJobs() {
        return suspendedJobs;
    }

    /**
     * The number of Grid jobs that started to execute, but are now suspended
     * 
     */
    @JsonProperty("SuspendedJobs")
    public void setSuspendedJobs(Integer suspendedJobs) {
        this.suspendedJobs = suspendedJobs;
    }

    /**
     * The number of Grid jobs managed by the Grid software, but not yet passed to the LRMS
     * 
     */
    @JsonProperty("PreLRMSWaitingJobs")
    public Integer getPreLRMSWaitingJobs() {
        return preLRMSWaitingJobs;
    }

    /**
     * The number of Grid jobs managed by the Grid software, but not yet passed to the LRMS
     * 
     */
    @JsonProperty("PreLRMSWaitingJobs")
    public void setPreLRMSWaitingJobs(Integer preLRMSWaitingJobs) {
        this.preLRMSWaitingJobs = preLRMSWaitingJobs;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

    @Override
    public int hashCode() {
        return HashCodeBuilder.reflectionHashCode(this);
    }

    @Override
    public boolean equals(Object other) {
        return EqualsBuilder.reflectionEquals(this, other);
    }

    @JsonAnyGetter
    public Map getAdditionalProperties() {
        return this.additionalProperties;
    }

    @JsonAnySetter
    public void setAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
    }

    @Generated("org.jsonschema2pojo")
    public static enum Staging {

        NONE("none"),
        STAGINGIN("stagingin"),
        STAGINGINOUT("staginginout"),
        STAGINGOUT("stagingout");
        private final String value;
        private static Map constants = new HashMap();

        static {
            for (ComputingEndpoint.Staging c: ComputingEndpoint.Staging.values()) {
                constants.put(c.value, c);
            }
        }

        private Staging(String value) {
            this.value = value;
        }

        @JsonValue
        @Override
        public String toString() {
            return this.value;
        }

        @JsonCreator
        public static ComputingEndpoint.Staging fromValue(String value) {
            ComputingEndpoint.Staging constant = constants.get(value);
            if (constant == null) {
                throw new IllegalArgumentException(value);
            } else {
                return constant;
            }
        }

    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy