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

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


      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

      throws RegistryException {
        if (provenanceRegistry != null){
            provenanceRegistry.updateExperimentMetadata(experimentId, metadata);
        }else {
            if (!isExperimentExists(experimentId, true)){
                throw new ExperimentDoesNotExistsException(experimentId);
            }
            ExperimentResource experiment = jpa.getWorker().getExperiment(experimentId);
            ExperimentDataResource data = experiment.getData();
            ExperimentMetadataResource experimentMetadata;
            if (data.isExperimentMetadataPresent()){
View Full Code Here

      String experimentId) throws RegistryException {
        if (provenanceRegistry != null){
            return provenanceRegistry.getExperimentWorkflowInstances(experimentId);
        }
    if (!isExperimentExists(experimentId)){
      throw new ExperimentDoesNotExistsException(experimentId);
    }
    ExperimentResource experiment = jpa.getWorker().getExperiment(experimentId);
    ExperimentDataResource data = experiment.getData();
    List<WorkflowExecution> result=new ArrayList<WorkflowExecution>();
    List<WorkflowDataResource> workflowInstances = data.getWorkflowInstances();
View Full Code Here

      return true;
    }else if (createIfNotPresent){
      //we are using the same id for the experiment id for backward compatibility
      //for up to airavata 0.5
      if (!isExperimentExists(instanceId, true)){
        throw new ExperimentDoesNotExistsException(instanceId);
      }
      addWorkflowInstance(instanceId, instanceId, null);
      return isWorkflowInstanceExists(instanceId);
    }else{
      return false;
View Full Code Here

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

      String workflowInstanceId, String templateName) throws RegistryException {
        if (provenanceRegistry != null){
            provenanceRegistry.addWorkflowInstance(experimentId,workflowInstanceId, templateName);
        }else {
            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

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.