Package org.apache.airavata.registry.cpi

Examples of org.apache.airavata.registry.cpi.Registry.update()


      JobStatus status = new JobStatus();
      status.setJobState(state);
      status.setTimeOfStateChange(Calendar.getInstance()
          .getTimeInMillis());
      details.setJobStatus(status);
      registry.update(
          org.apache.airavata.registry.cpi.RegistryModelType.JOB_DETAIL,
          details, details.getJobID());
    } catch (Exception e) {
      throw new GFacException("Error persisting job status"
          + e.getLocalizedMessage(), e);
View Full Code Here


            Registry registry = jobExecutionContext.getRegistry();
      JobStatus status = new JobStatus();
      status.setJobState(state);
      status.setTimeOfStateChange(Calendar.getInstance().getTimeInMillis());
          details.setJobStatus(status);
      registry.update(org.apache.airavata.registry.cpi.RegistryModelType.JOB_DETAIL, details, details.getJobID());
    } catch (Exception e) {
      throw new GFacException("Error persisting job status" + e.getLocalizedMessage(),e);
    }
  }
    public static void saveErrorDetails(JobExecutionContext jobExecutionContext, String errorMessage, CorrectiveAction action, ErrorCategory errorCatogory) throws GFacException {
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.