Package org.apache.airavata.model.workspace.experiment

Examples of org.apache.airavata.model.workspace.experiment.ExperimentState


        this.airavataRegistry = airavataRegistry;
    }

    @Subscribe
    public void updateRegistry(ExperimentStatusChangeRequest experimentStatus) {
        ExperimentState state = experimentStatus.getState();
        if (state != null) {
            try {
                String experimentID = experimentStatus.getIdentity().getExperimentID();
                updateExperimentStatus(experimentID, state);
            } catch (Exception e) {
View Full Code Here


        }
    }

    @Subscribe
    public void setupExperimentStatus(WorkflowNodeStatusChangeRequest nodeStatus) {
        ExperimentState state = ExperimentState.UNKNOWN;
        switch (nodeStatus.getState()) {
            case CANCELED:
                state = ExperimentState.CANCELED;
                break;
            case COMPLETED:
                state = ExperimentState.COMPLETED;
                break;
            case INVOKED:
                state = ExperimentState.LAUNCHED;
                break;
            case FAILED:
                state = ExperimentState.FAILED;
                break;
            case EXECUTING:
                state = ExperimentState.EXECUTING;
                break;
            case CANCELING:
                state = ExperimentState.CANCELING;
                break;
            default:
                break;
        }
        logger.debug("Publishing Experiment Status " + state.toString());
        monitorPublisher.publish(new ExperimentStatusChangeRequest(nodeStatus.getIdentity(), state));
    }
View Full Code Here

            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){
                    case CREATED:
                        registry.update(RegistryModelType.EXPERIMENT, experiment, airavataExperimentId);
                        break;
                    case VALIDATED:
View Full Code Here

            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){
                    case CREATED:
                        registry.add(ChildDataType.EXPERIMENT_CONFIGURATION_DATA, userConfiguration, airavataExperimentId);
                        break;
                    case VALIDATED:
View Full Code Here

            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){
                    case CREATED:
                        registry.add(ChildDataType.COMPUTATIONAL_RESOURCE_SCHEDULING, resourceScheduling, airavataExperimentId);
                        break;
                    case VALIDATED:
View Full Code Here

        this.airavataRegistry = airavataRegistry;
    }

    @Subscribe
    public void updateRegistry(ExperimentStatusChangeRequest experimentStatus) {
        ExperimentState state = experimentStatus.getState();
        if (state != null) {
            try {
                String experimentID = experimentStatus.getIdentity().getExperimentID();
                updateExperimentStatus(experimentID, state);
            } catch (Exception e) {
View Full Code Here

        }
    }

    @Subscribe
    public void setupExperimentStatus(WorkflowNodeStatusChangeRequest nodeStatus) {
        ExperimentState state = ExperimentState.UNKNOWN;
        switch (nodeStatus.getState()) {
            case CANCELED:
                state = ExperimentState.CANCELED;
                break;
            case COMPLETED:
                state = ExperimentState.COMPLETED;
                break;
            case INVOKED:
                state = ExperimentState.LAUNCHED;
                break;
            case FAILED:
                state = ExperimentState.FAILED;
                break;
            case EXECUTING:
                state = ExperimentState.EXECUTING;
                break;
            case CANCELING:
                state = ExperimentState.CANCELING;
                break;
            default:
                break;
        }
        logger.debug("Publishing Experiment Status " + state.toString());
        monitorPublisher.publish(new ExperimentStatusChangeRequest(nodeStatus.getIdentity(), state));
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.model.workspace.experiment.ExperimentState

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.