Package org.apache.airavata.orchestrator.core.exception

Examples of org.apache.airavata.orchestrator.core.exception.OrchestratorException


                    //FIXME:: The GatewayID is temporarily read from properties file. It should instead be inferred from the token.
                    return localhost.submitJob(experimentID, taskID, ServerSettings.getSetting(Constants.GATEWAY_NAME));
                }
            }
        } catch (TException e) {
            throw new OrchestratorException(e);
        } catch (InterruptedException e) {
            e.printStackTrace();
        } catch (KeeperException e) {
            e.printStackTrace();
        } catch (ApplicationSettingsException e) {
View Full Code Here


        try {
            return gfac.submitJob(experimentID, taskID, ServerSettings.getSetting(Constants.GATEWAY_NAME));
        } catch (Exception e) {
            String error = "Error launching the job : " + experimentID;
            logger.error(error);
            throw new OrchestratorException(error);
        }
    }
View Full Code Here

        try {
            return submit(experimentID,taskID);
        } catch (Exception e) {
            String error = "Error launching the job : " + experimentID;
            logger.error(error);
            throw new OrchestratorException(error);
        }
    }
View Full Code Here

                jobSubmitter.initialize(this.orchestratorContext);

            } catch (Exception e) {
                String error = "Error creating JobSubmitter in non threaded mode ";
                logger.error(error);
                throw new OrchestratorException(error, e);
            }
        } catch (OrchestratorException e) {
            logger.error("Error Constructing the Orchestrator");
            throw e;
        }
View Full Code Here

        // creating monitorID to register with monitoring queue
        // this is a special case because amqp has to be in place before submitting the job
        try {
            return jobSubmitter.submit(experimentId, taskId,tokenId);
        } catch (Exception e) {
            throw new OrchestratorException("Error launching the job", e);
        }

    }
View Full Code Here

            TaskDetails taskDetails = ExperimentModelUtil.cloneTaskFromExperiment(experiment);
            taskDetails.setTaskID((String) newRegistry.add(ChildDataType.TASK_DETAIL, taskDetails, nodeID));
            tasks.add(taskDetails);
        } catch (Exception e) {
            throw new OrchestratorException("Error during creating a task");
        }
        return tasks;
    }
View Full Code Here

        }
    }

    public void cancelExperiment(String experimentID)
      throws OrchestratorException {
        throw new OrchestratorException(new OperationNotSupportedException());
    }
View Full Code Here

            if (!orchestratorConfiguration.isEmbeddedMode()) {
                Map<String, Integer> gfacNodeList = airavataRegistry.getGFACNodeList();
                if (gfacNodeList.size() == 0) {
                    String error = "No GFAC instances available in the system, Can't initialize Orchestrator";
                    logger.error(error);
                    throw new OrchestratorException(error);
                }
                Set<String> uriList = gfacNodeList.keySet();
                Iterator<String> iterator = uriList.iterator();
                // todo consume these data to
                List<GFACInstance> gfacInstanceList = new ArrayList<GFACInstance>();
                while (iterator.hasNext()) {
                    String uri = iterator.next();
                    Integer integer = gfacNodeList.get(uri);
                    gfacInstanceList.add(new GFACInstance(uri, integer));
                }
            }
            orchestratorContext = new OrchestratorContext();
            orchestratorContext.setOrchestratorConfiguration(orchestratorConfiguration);
            orchestratorConfiguration.setAiravataAPI(getAiravataAPI());
            orchestratorContext.setRegistry(airavataRegistry);

            /* initializing registry cpi */
            orchestratorContext.setNewRegistry(new RegistryImpl());
        } catch (RegException e) {
            logger.error("Failed to initializing Orchestrator");
            OrchestratorException orchestratorException = new OrchestratorException(e);
            throw orchestratorException;
        } catch (AiravataConfigurationException e) {
            logger.error("Failed to initializing Orchestrator");
            OrchestratorException orchestratorException = new OrchestratorException(e);
            throw orchestratorException;
        } catch (IOException e) {
            logger.error("Failed to initializing Orchestrator - Error parsing configuration files");
            OrchestratorException orchestratorException = new OrchestratorException(e);
            throw orchestratorException;
    } catch (ApplicationSettingsException e) {
      throw new OrchestratorException(e);
    } catch (RegistryException e) {
            logger.error("Failed to initializing Orchestrator - Error initializing registry");
            OrchestratorException orchestratorException = new OrchestratorException(e);
            throw orchestratorException;
        }
    }
View Full Code Here

    try {
      TaskDetails taskData = (TaskDetails) registry.get(
          RegistryModelType.TASK_DETAIL, taskId);
      String applicationId = taskData.getApplicationId();
      if (applicationId == null) {
        throw new OrchestratorException(
            "Error executing the job because there is no Application Name in this Experiment:  "
                + applicationId);
      }
      ApplicationDeploymentDescription applicationDeploymentDescription = getAppDeployment(taskData, applicationId);
            taskData.setApplicationDeploymentId(applicationDeploymentDescription.getAppDeploymentId());
View Full Code Here

  private String getModuleId(AppCatalog appCatalog, String applicationId)
      throws AppCatalogException, OrchestratorException {
    ApplicationInterfaceDescription applicationInterface = appCatalog.getApplicationInterface().getApplicationInterface(applicationId);
    List<String> applicationModules = applicationInterface.getApplicationModules();
    if (applicationModules.size()==0){
      throw new OrchestratorException(
          "No modules defined for application "
              + applicationId);
    }
//      AiravataAPI airavataAPI = getAiravataAPI();
    String selectedModuleId=applicationModules.get(0);
View Full Code Here

TOP

Related Classes of org.apache.airavata.orchestrator.core.exception.OrchestratorException

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.