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

Examples of org.apache.airavata.model.workspace.experiment.JobStatus$JobStatusStandardSchemeFactory


            }
        } else {
            registry = jobExecutionContext.getRegistry();
        }
        details = new JobDetails();
        status = new JobStatus();
        this.jobExecutionContext = jobExecutionContext;
    }
View Full Code Here


            }
        }else{
            registry = jobExecutionContext.getRegistry();
        }
    details = new JobDetails();
    status = new JobStatus();
    this.jobExecutionContext=jobExecutionContext;
  }
View Full Code Here

        return null;
    }

    public static JobStatus getJobStatus (StatusResource status){
        if (status != null){
            JobStatus jobStatus = new JobStatus();
            if (status.getState() == null || status.getState().equals("")){
                status.setState("UNKNOWN");
            }
            jobStatus.setJobState(JobState.valueOf(status.getState()));
            jobStatus.setTimeOfStateChange(status.getStatusUpdateTime().getTime());
            return jobStatus;
        }
        return null;
    }
View Full Code Here

                while (true) {
                    try {
                        jobStatuses = client.getJobStatuses(expId);
                        Set<String> strings = jobStatuses.keySet();
                        for (String key : strings) {
                            JobStatus jobStatus = jobStatuses.get(key);
                            if(jobStatus == null){
                                return;
                            }else {
                                if (JobState.COMPLETE.equals(jobStatus.getJobState())) {
                                    log.info("Job completed Job ID: " + key);
                                    return;
                                }else{
                                    log.info("Job ID:" + key + "  Job Status : " + jobStatuses.get(key).getJobState().toString());
                                }
View Full Code Here

                while (true) {
                    try {
                        jobStatuses = client.getJobStatuses(expId);
                        Set<String> strings = jobStatuses.keySet();
                        for (String key : strings) {
                            JobStatus jobStatus = jobStatuses.get(key);
                            if(jobStatus == null){
                                return;
                            }else {
                                if (JobState.COMPLETE.equals(jobStatus.getJobState())) {
                                    log.info("Job completed Job ID: " + key);
                                    return;
                                }else{
                                    log.info("Job ID:" + key + "  Job Status : " + jobStatuses.get(key).getJobState().toString());
                                }
View Full Code Here

            }
        }else{
            registry = jobExecutionContext.getRegistry();
        }
    details = new JobDetails();
    status = new JobStatus();
    this.jobExecutionContext=jobExecutionContext;
  }
View Full Code Here

TOP

Related Classes of org.apache.airavata.model.workspace.experiment.JobStatus$JobStatusStandardSchemeFactory

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.