Examples of ExperimentNotFoundException


Examples of eu.planets_project.tb.impl.exceptions.ExperimentNotFoundException

      Experiment exp = tbmanager.getExperiment(this.lExperimentStructureReference);
      if(exp!=null){
        return exp;
      }
      else{
        throw new ExperimentNotFoundException("ExperimentStructure Reference "+this.lExperimentStructureReference +" cannot be resolved");
      }
    }
  }
View Full Code Here

Examples of eu.planets_project.tb.impl.exceptions.ExperimentNotFoundException

    TestbedManager tbmanager = TestbedManagerImpl.getInstance(true);
    if(tbmanager.isRegistered(expID)){
      this.lExperimentStructureReference = expID;
    }
    else{
      throw new ExperimentNotFoundException("ExperimentStructureReference "+expID+" cannot be resolved");
    }
  }
View Full Code Here

Examples of org.apache.airavata.model.error.ExperimentNotFoundException

            throws TException{
        try {
            client.launchExperiment(expId, "testToken");
        } catch (ExperimentNotFoundException e) {
            logger.error("Error occured while launching the experiment...", e.getMessage());
            throw new ExperimentNotFoundException(e);
        } catch (AiravataSystemException e) {
            logger.error("Error occured while launching the experiment...", e.getMessage());
            throw new AiravataSystemException(e);
        } catch (InvalidRequestException e) {
            logger.error("Error occured while launching the experiment...", e.getMessage());
View Full Code Here

Examples of org.apache.airavata.model.error.ExperimentNotFoundException

    @Override
    public Experiment getExperiment(String airavataExperimentId) throws InvalidRequestException, ExperimentNotFoundException, AiravataClientException, AiravataSystemException, TException {
        try {
            registry = RegistryFactory.getDefaultRegistry();
            if (!registry.isExist(RegistryModelType.EXPERIMENT, airavataExperimentId)){
                throw new ExperimentNotFoundException("Requested experiment id " + airavataExperimentId + " does not exist in the system..");
            }
            return (Experiment)registry.get(RegistryModelType.EXPERIMENT, airavataExperimentId);
        } catch (Exception e) {
            logger.error("Error while retrieving the experiment", e);
            AiravataSystemException exception = new AiravataSystemException();
View Full Code Here

Examples of org.apache.airavata.model.error.ExperimentNotFoundException

    @Override
    public void updateExperiment(String airavataExperimentId, Experiment experiment) throws InvalidRequestException, ExperimentNotFoundException, AiravataClientException, AiravataSystemException, TException {
        try {
            registry = RegistryFactory.getDefaultRegistry();
            if (!registry.isExist(RegistryModelType.EXPERIMENT, airavataExperimentId)){
                throw new ExperimentNotFoundException("Requested experiment id " + airavataExperimentId + " does not exist in the system..");
            }
            ExperimentStatus experimentStatus = getExperimentStatus(airavataExperimentId);
            if (experimentStatus != null){
                ExperimentState experimentState = experimentStatus.getExperimentState();
                switch (experimentState){
View Full Code Here

Examples of org.apache.airavata.model.error.ExperimentNotFoundException

    @Override
    public void updateExperimentConfiguration(String airavataExperimentId, UserConfigurationData userConfiguration) throws TException {
        try {
            registry = RegistryFactory.getDefaultRegistry();
            if (!registry.isExist(RegistryModelType.EXPERIMENT, airavataExperimentId)){
                throw new ExperimentNotFoundException("Requested experiment id " + airavataExperimentId + " does not exist in the system..");
            }
            ExperimentStatus experimentStatus = getExperimentStatus(airavataExperimentId);
            if (experimentStatus != null){
                ExperimentState experimentState = experimentStatus.getExperimentState();
                switch (experimentState){
View Full Code Here

Examples of org.apache.airavata.model.error.ExperimentNotFoundException

    @Override
    public void updateResourceScheduleing(String airavataExperimentId, ComputationalResourceScheduling resourceScheduling) throws TException {
        try {
            registry = RegistryFactory.getDefaultRegistry();
            if (!registry.isExist(RegistryModelType.EXPERIMENT, airavataExperimentId)){
                throw new ExperimentNotFoundException("Requested experiment id " + airavataExperimentId + " does not exist in the system..");
            }
            ExperimentStatus experimentStatus = getExperimentStatus(airavataExperimentId);
            if (experimentStatus != null){
                ExperimentState experimentState = experimentStatus.getExperimentState();
                switch (experimentState){
View Full Code Here

Examples of org.apache.airavata.model.error.ExperimentNotFoundException

    @Override
    public boolean validateExperiment(String airavataExperimentId) throws InvalidRequestException, ExperimentNotFoundException, AiravataClientException, AiravataSystemException, TException {
       try {
            registry = RegistryFactory.getDefaultRegistry();
       if (!registry.isExist(RegistryModelType.EXPERIMENT, airavataExperimentId)){
           throw new ExperimentNotFoundException("Requested experiment id " + airavataExperimentId + " does not exist in the system..");
       }
     } catch (RegistryException e1) {
         logger.error("Error while retrieving projects", e1);
               AiravataSystemException exception = new AiravataSystemException();
               exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
View Full Code Here

Examples of org.apache.airavata.model.error.ExperimentNotFoundException

                                                                                    AiravataSystemException,
                                                                                    TException {
        try {
            registry = RegistryFactory.getDefaultRegistry();
            if (!registry.isExist(RegistryModelType.EXPERIMENT, airavataExperimentId)){
                throw new ExperimentNotFoundException("Requested experiment id " + airavataExperimentId +
                                                      " does not exist in the system..");
            }
            return (ExperimentStatus)registry.get(RegistryModelType.EXPERIMENT_STATUS, airavataExperimentId);
        } catch (Exception e) {
            logger.error("Error while retrieving the experiment status", e);
View Full Code Here

Examples of org.apache.airavata.model.error.ExperimentNotFoundException

    @Override
    public List<DataObjectType> getExperimentOutputs(String airavataExperimentId) throws TException {
        try {
            registry = RegistryFactory.getDefaultRegistry();
            if (!registry.isExist(RegistryModelType.EXPERIMENT, airavataExperimentId)){
                throw new ExperimentNotFoundException("Requested experiment id " + airavataExperimentId + " does not exist in the system..");
            }
            return (List<DataObjectType>)registry.get(RegistryModelType.EXPERIMENT_OUTPUT, airavataExperimentId);
        } catch (Exception e) {
            logger.error("Error while retrieving the experiment outputs", e);
            AiravataSystemException exception = new AiravataSystemException();
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.