Examples of ExperimentDoesNotExistsException


Examples of org.apache.airavata.registry.api.exception.worker.ExperimentDoesNotExistsException

      throws RegistryException {
        if (provenanceRegistry != null){
            return provenanceRegistry.getExperimentMetaInformation(experimentId);
        }
        if (!isExperimentExists(experimentId)){
            throw new ExperimentDoesNotExistsException(experimentId);
        }
        ExperimentDataRetriever experimentDataRetriever = new ExperimentDataRetriever();
        return experimentDataRetriever.getExperimentMetaInformation(experimentId);
  }
View Full Code Here

Examples of org.apache.airavata.registry.api.exception.worker.ExperimentDoesNotExistsException

  }

  private ExecutionErrorResource createNewExecutionErrorResource(
      String experimentId, ExecutionError errorSource, ExecutionErrors.Source type) throws RegistryException {
    if (!isExperimentExists(experimentId)){
      throw new ExperimentDoesNotExistsException(experimentId);
    }
    ExecutionErrorResource executionError = jpa.getWorker().getExperiment(experimentId).getData().createExecutionError();
    setupValues(errorSource, executionError);
    executionError.setSourceType(type.toString());
    return executionError;
View Full Code Here

Examples of org.apache.airavata.registry.api.exception.worker.ExperimentDoesNotExistsException

      String workflowExecutionId, String nodeId) throws RegistryException {
    List<ApplicationJob> jobs=new ArrayList<ApplicationJob>();
    List<Resource> gFacJobs;
    if (workflowExecutionId==null){
      if (!isExperimentExists(experimentId)){
        throw new ExperimentDoesNotExistsException(experimentId);
      }
      gFacJobs = jpa.getWorker().getExperiment(experimentId).getData().getGFacJobs();
    }else if (nodeId==null){
      if (!isWorkflowInstanceExists(workflowExecutionId)){
        throw new WorkflowInstanceDoesNotExistsException(workflowExecutionId);
View Full Code Here

Examples of org.apache.airavata.registry.api.exception.worker.ExperimentDoesNotExistsException

        }else {
            WorkspaceProject workspaceProject = getWorkspaceProject(projectName);
            ProjectResource project = jpa.getWorker().getProject(createProjName(workspaceProject.getProjectName()));
            String experimentId = experiment.getExperimentId();
            if (isExperimentExists(experimentId)){
                throw new ExperimentDoesNotExistsException(experimentId);
            }
            ExperimentResource experimentResource = project.createExperiment(experimentId);
            if (experiment.getSubmittedDate()!=null) {
                experimentResource.setSubmittedDate(new Timestamp(experiment.getSubmittedDate().getTime()));
            }
View Full Code Here

Examples of org.apache.airavata.registry.api.exception.worker.ExperimentDoesNotExistsException

        if (projectsRegistry != null){
            projectsRegistry.removeExperiment(experimentId);
        }else {
            WorkerResource worker = jpa.getWorker();
            if (!worker.isExperimentExists(experimentId)){
                throw new ExperimentDoesNotExistsException(experimentId);
            }
            worker.removeExperiment(experimentId);
        }
    }
View Full Code Here

Examples of org.apache.airavata.registry.api.exception.worker.ExperimentDoesNotExistsException

      String user) throws RegistryException {
        if (provenanceRegistry != null){
            provenanceRegistry.updateExperimentExecutionUser(experimentId, user);
        }else {
            if (!isExperimentExists(experimentId, true)){
                throw new ExperimentDoesNotExistsException(experimentId);
            }
            ExperimentResource experiment = jpa.getWorker().getExperiment(experimentId);
            ExperimentDataResource data = experiment.getData();
            data.setUserName(user);
            data.save();
View Full Code Here

Examples of org.apache.airavata.registry.api.exception.worker.ExperimentDoesNotExistsException

      throws RegistryException {
        if (provenanceRegistry != null){
            return provenanceRegistry.getExperimentExecutionUser(experimentId);
        }
    if (!isExperimentExists(experimentId)){
      throw new ExperimentDoesNotExistsException(experimentId);
    }
    ExperimentResource experiment = jpa.getWorker().getExperiment(experimentId);
    return experiment.getData().getUserName();
  }
View Full Code Here

Examples of org.apache.airavata.registry.api.exception.worker.ExperimentDoesNotExistsException

      throws RegistryException {
        if (provenanceRegistry != null){
            return provenanceRegistry.getExperimentName(experimentId);
        }
    if (!isExperimentExists(experimentId)){
      throw new ExperimentDoesNotExistsException(experimentId);
    }
        return (new ExperimentDataRetriever()).getExperimentName(experimentId);
  }
View Full Code Here

Examples of org.apache.airavata.registry.api.exception.worker.ExperimentDoesNotExistsException

      String experimentName) throws RegistryException {
        if (provenanceRegistry != null){
            provenanceRegistry.updateExperimentName(experimentId, experimentName);
        }else {
            if (!isExperimentExists(experimentId, true)){
                throw new ExperimentDoesNotExistsException(experimentId);
            }
            ExperimentResource experiment = jpa.getWorker().getExperiment(experimentId);
            ExperimentDataResource data = experiment.getData();
            data.setExpName(experimentName);
            data.save();
View Full Code Here

Examples of org.apache.airavata.registry.api.exception.worker.ExperimentDoesNotExistsException

      throws RegistryException {
        if (provenanceRegistry != null){
            return provenanceRegistry.getExperimentMetadata(experimentId);
        }
    if (!isExperimentExists(experimentId, true)){
      throw new ExperimentDoesNotExistsException(experimentId);
    }
    ExperimentResource experiment = jpa.getWorker().getExperiment(experimentId);
    ExperimentDataResource data = experiment.getData();
    if (data.isExperimentMetadataPresent()){
      return data.getExperimentMetadata().getMetadata();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.