blob: b5081cfbb1bcb4ff74ea24e605673e022407994f [file] [log] [blame]
/**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.k8s.api.resources.process;
import org.apache.airavata.k8s.api.resources.task.TaskResource;
import java.util.ArrayList;
import java.util.List;
/**
* TODO: Class level comments please
*
* @author dimuthu
* @since 1.0.0-SNAPSHOT
*/
public class ProcessResource {
private long id;
private String name;
private long experimentId;
private long workflowId;
private long creationTime;
private long lastUpdateTime;
private List<ProcessStatusResource> processStatuses = new ArrayList<>();
private List<TaskResource> tasks = new ArrayList<>();
private List<Long> processErrorIds = new ArrayList<>();
private String taskDag;
private String experimentDataDir;
private String processType;
public long getId() {
return id;
}
public ProcessResource setId(long id) {
this.id = id;
return this;
}
public long getExperimentId() {
return experimentId;
}
public ProcessResource setExperimentId(long experimentId) {
this.experimentId = experimentId;
return this;
}
public long getCreationTime() {
return creationTime;
}
public ProcessResource setCreationTime(long creationTime) {
this.creationTime = creationTime;
return this;
}
public long getLastUpdateTime() {
return lastUpdateTime;
}
public ProcessResource setLastUpdateTime(long lastUpdateTime) {
this.lastUpdateTime = lastUpdateTime;
return this;
}
public List<ProcessStatusResource> getProcessStatuses() {
return processStatuses;
}
public ProcessResource setProcessStatuses(List<ProcessStatusResource> processStatuses) {
this.processStatuses = processStatuses;
return this;
}
public List<TaskResource> getTasks() {
return tasks;
}
public ProcessResource setTasks(List<TaskResource> tasks) {
this.tasks = tasks;
return this;
}
public String getTaskDag() {
return taskDag;
}
public ProcessResource setTaskDag(String taskDag) {
this.taskDag = taskDag;
return this;
}
public List<Long> getProcessErrorIds() {
return processErrorIds;
}
public ProcessResource setProcessErrorIds(List<Long> processErrorIds) {
this.processErrorIds = processErrorIds;
return this;
}
public String getExperimentDataDir() {
return experimentDataDir;
}
public ProcessResource setExperimentDataDir(String experimentDataDir) {
this.experimentDataDir = experimentDataDir;
return this;
}
public String getProcessType() {
return processType;
}
public ProcessResource setProcessType(String processType) {
this.processType = processType;
return this;
}
public String getName() {
return name;
}
public ProcessResource setName(String name) {
this.name = name;
return this;
}
public long getWorkflowId() {
return workflowId;
}
public ProcessResource setWorkflowId(long workflowId) {
this.workflowId = workflowId;
return this;
}
}