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

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


  }

  @Override
  public void updateApplicationJobStatus(String gfacJobId, ApplicationJobStatus status, Date statusUpdateTime)
      throws RegistryException {
    GFacJobDataResource gFacJob = validateAndGetGFacJob(gfacJobId);
    gFacJob.setStatus(status.toString());
    gFacJob.setStatusUpdateTime(new Timestamp(statusUpdateTime.getTime()));
    gFacJob.save();
    addApplicationJobStatusData(gfacJobId, status, statusUpdateTime, null);
  }
View Full Code Here


  }

  @Override
  public void updateApplicationJobData(String gfacJobId, String jobdata)
      throws RegistryException {
    GFacJobDataResource gFacJob = validateAndGetGFacJob(gfacJobId);
    gFacJob.setJobData(jobdata);
    gFacJob.save();
  }
View Full Code Here

  }

  @Override
  public void updateApplicationJobSubmittedTime(String gfacJobId, Date submitted)
      throws RegistryException {
    GFacJobDataResource gFacJob = validateAndGetGFacJob(gfacJobId);
    gFacJob.setSubmittedTime(new Timestamp(submitted.getTime()));
    gFacJob.save();
  }
View Full Code Here

  }

  @Override
  public void updateApplicationJobStatusUpdateTime(String gfacJobId, Date completed)
      throws RegistryException {
    GFacJobDataResource gFacJob = validateAndGetGFacJob(gfacJobId);
    gFacJob.setStatusUpdateTime(new Timestamp(completed.getTime()));
    gFacJob.save();
  }
View Full Code Here

  }

  @Override
  public void updateApplicationJobMetadata(String gfacJobId, String metadata)
      throws RegistryException {
    GFacJobDataResource gFacJob = validateAndGetGFacJob(gfacJobId);
    gFacJob.setMetadata(metadata);
    gFacJob.save();
  }
View Full Code Here

    gFacJob.save();
  }

  @Override
  public ApplicationJob getApplicationJob(String gfacJobId) throws RegistryException {
    GFacJobDataResource gfacJob = validateAndGetGFacJob(gfacJobId);
    ApplicationJob job = new ApplicationJob();
    setupValues(gfacJob, job);
    return job;
  }
View Full Code Here

TOP

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

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.