Package org.apache.airavata.registry.api.exception.worker

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


  @Override
  public ExperimentData getExperiment(String experimentId)
      throws RegistryException {
    if (!isExperimentExists(experimentId)){
      throw new ExperimentDoesNotExistsException(experimentId);
    }
        ExperimentDataRetriever experimentDataRetriever = new ExperimentDataRetriever();
        ExperimentData experimentData =  experimentDataRetriever.getExperiment(experimentId);
        return experimentDataRetriever.getExperiment(experimentId);
  }
View Full Code Here


  @Override
  public void addWorkflowInstance(String experimentId,
      String workflowInstanceId, String templateName) throws RegistryException {
    if (!isExperimentExists(experimentId, true)){
      throw new ExperimentDoesNotExistsException(experimentId);
    }
    if (isWorkflowInstanceExists(workflowInstanceId)){
      throw new WorkflowInstanceAlreadyExistsException(workflowInstanceId);
    }
    ExperimentResource experiment = jpa.getWorker().getExperiment(experimentId);
View Full Code Here

  @Override
  public ExperimentData getExperimentMetaInformation(String experimentId)
      throws RegistryException {
        if (!isExperimentExists(experimentId)){
            throw new ExperimentDoesNotExistsException(experimentId);
        }
        ExperimentDataRetriever experimentDataRetriever = new ExperimentDataRetriever();
        return experimentDataRetriever.getExperimentMetaInformation(experimentId);
  }
View Full Code Here

        }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

        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

      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

      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

      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

      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

      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

Related Classes of org.apache.airavata.registry.api.exception.worker.ExperimentDoesNotExistsException

Copyright © 2018 www.massapicom. 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.