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

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


        ComputationalResourceScheduling taskScheduling = taskDetails.getTaskScheduling();
        String resourceHostId = taskScheduling.getResourceHostId();
        try {
            return registry.getHostDescriptor(resourceHostId);
        } catch (RegException e) {
            throw new OrchestratorException(e);
        }
    }
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);
        } 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

        GfacService.Client localhost = GFacClientFactory.createOrchestratorClient("localhost",
                Integer.parseInt(ServerSettings.getSetting(Constants.GFAC_SERVER_PORT, "8950")));
        try {
            return localhost.submitJob(experimentID, taskID);
        } catch (TException e) {
            throw new OrchestratorException(e);
        }
    }
View Full Code Here

        try {
             return gfac.submitJob(experimentID, taskID);
        } catch (Exception e) {
            String error = "Error launching the job : " + experimentID;
            logger.error(error);
            throw new OrchestratorException(error);
        }
    }
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.