Examples of GFacJobStatusResource


Examples of org.apache.airavata.persistance.registry.jpa.resources.GFacJobStatusResource

  private void addApplicationJobStatusData(String jobId, ApplicationJobStatus status, Date updatedTime, GFacJobDataResource dataResource) throws RegistryException {
    if (RegistrySettings.isApplicationJobStatusHistoryEnabled()){
      if (dataResource==null){
        dataResource = jpa.getWorker().getGFacJob(jobId);
      }
      GFacJobStatusResource s = (GFacJobStatusResource)dataResource.create(ResourceType.GFAC_JOB_STATUS);
      s.setStatus(status.toString());
      s.setStatusUpdateTime(new Timestamp(updatedTime.getTime()));
      s.save();
    }
  }
View Full Code Here

Examples of org.apache.airavata.persistance.registry.jpa.resources.GFacJobStatusResource

  private void addApplicationJobStatusData(String jobId, ApplicationJobStatus status, Date updatedTime, GFacJobDataResource dataResource) throws RegistryException {
    if (RegistrySettings.isApplicationJobStatusHistoryEnabled()){
      if (dataResource==null){
        dataResource = jpa.getWorker().getGFacJob(jobId);
      }
      GFacJobStatusResource s = (GFacJobStatusResource)dataResource.create(ResourceType.GFAC_JOB_STATUS);
      s.setStatus(status.toString());
      s.setStatusUpdateTime(new Timestamp(updatedTime.getTime()));
      s.save();
    }
  }
View Full Code Here

Examples of org.apache.airavata.persistance.registry.jpa.resources.GFacJobStatusResource

  private void addApplicationJobStatusData(String jobId, ApplicationJobStatus status, Date updatedTime, GFacJobDataResource dataResource) throws RegistryException {
    if (RegistrySettings.isApplicationJobStatusHistoryEnabled()){
      if (dataResource==null){
        dataResource = jpa.getWorker().getGFacJob(jobId);
      }
      GFacJobStatusResource s = (GFacJobStatusResource)dataResource.create(ResourceType.GFAC_JOB_STATUS);
      s.setStatus(status.toString());
      s.setStatusUpdateTime(new Timestamp(updatedTime.getTime()));
      s.save();
    }
  }
View Full Code Here

Examples of org.apache.airavata.persistance.registry.jpa.resources.GFacJobStatusResource

  private void addApplicationJobStatusData(String jobId, ApplicationJobStatus status, Date updatedTime, GFacJobDataResource dataResource) throws RegistryException {
    if (RegistrySettings.isApplicationJobStatusHistoryEnabled()){
      if (dataResource==null){
        dataResource = jpa.getWorker().getGFacJob(jobId);
      }
      GFacJobStatusResource s = (GFacJobStatusResource)dataResource.create(ResourceType.GFAC_JOB_STATUS);
      s.setStatus(status.toString());
      s.setStatusUpdateTime(new Timestamp(updatedTime.getTime()));
      s.save();
    }
  }
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.