use of org.apache.airavata.registry.core.experiment.catalog.ExperimentCatResource in project airavata by apache.
the class JobResource method getJobStatuses.
public List<JobStatusResource> getJobStatuses() throws RegistryException {
List<JobStatusResource> jobStatusResources = new ArrayList();
List<ExperimentCatResource> resources = get(ResourceType.JOB_STATUS);
for (ExperimentCatResource resource : resources) {
JobStatusResource statusResource = (JobStatusResource) resource;
jobStatusResources.add(statusResource);
}
return jobStatusResources;
}
use of org.apache.airavata.registry.core.experiment.catalog.ExperimentCatResource in project airavata by apache.
the class ProcessResource method getProcessErrors.
public List<ProcessErrorResource> getProcessErrors() throws RegistryException {
List<ProcessErrorResource> processErrorResources = new ArrayList();
List<ExperimentCatResource> resources = get(ResourceType.PROCESS_ERROR);
for (ExperimentCatResource resource : resources) {
ProcessErrorResource errorResource = (ProcessErrorResource) resource;
processErrorResources.add(errorResource);
}
return processErrorResources;
}
use of org.apache.airavata.registry.core.experiment.catalog.ExperimentCatResource in project airavata by apache.
the class ProcessResource method getTaskList.
public List<TaskResource> getTaskList() throws RegistryException {
List<TaskResource> taskResources = new ArrayList<TaskResource>();
List<ExperimentCatResource> resources = get(ResourceType.TASK);
for (ExperimentCatResource resource : resources) {
TaskResource taskResource = (TaskResource) resource;
taskResources.add(taskResource);
}
return taskResources;
}
use of org.apache.airavata.registry.core.experiment.catalog.ExperimentCatResource in project airavata by apache.
the class ProcessResource method getProcessStatuses.
public List<ProcessStatusResource> getProcessStatuses() throws RegistryException {
List<ProcessStatusResource> processStatusResources = new ArrayList();
List<ExperimentCatResource> resources = get(ResourceType.PROCESS_STATUS);
for (ExperimentCatResource resource : resources) {
ProcessStatusResource statusResource = (ProcessStatusResource) resource;
processStatusResources.add(statusResource);
}
return processStatusResources;
}
use of org.apache.airavata.registry.core.experiment.catalog.ExperimentCatResource in project airavata by apache.
the class ProjectResource method getExperiments.
/**
* @return list of experiments
*/
public List<ExperimentResource> getExperiments() throws RegistryException {
List<ExperimentCatResource> list = get(ResourceType.EXPERIMENT);
List<ExperimentResource> result = new ArrayList<ExperimentResource>();
for (ExperimentCatResource resource : list) {
result.add((ExperimentResource) resource);
}
return result;
}
Aggregations