Package org.apache.airavata.persistance.registry.jpa.resources

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


  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

  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

  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

Related Classes of org.apache.airavata.persistance.registry.jpa.resources.GFacJobStatusResource

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.