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

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


      throw new InvalidApplicationJobIDException();
    }
    if (!isApplicationJobExists(jobId)){
      throw new ApplicationJobDoesNotExistsException(jobId);
    }
    GFacJobDataResource gFacJob = jpa.getWorker().getGFacJob(jobId);
    return gFacJob;
  }
View Full Code Here


  }

  @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

    }
//    if (!isWorkflowInstanceNodePresent(job.getWorkflowExecutionId(), job.getNodeId())){
//      throw new WorkflowInstanceNodeDoesNotExistsException(job.getWorkflowExecutionId(), job.getNodeId());
//    }
    ExperimentDataResource expData = jpa.getWorker().getExperiment(job.getExperimentId()).getData();
    GFacJobDataResource gfacJob = expData.createGFacJob(job.getJobId());
    gfacJob.setExperimentDataResource(expData);
    gfacJob.setWorkflowDataResource(expData.getWorkflowInstance(job.getWorkflowExecutionId()));
    gfacJob.setNodeID(job.getNodeId());
    setupValues(job, gfacJob);
    gfacJob.save();
    addApplicationJobStatusData(job.getJobId(), job.getStatus(), job.getStatusUpdateTime(),gfacJob);
  }
View Full Code Here

    gfacJob.setSubmittedTime(new Timestamp(job.getSubmittedTime().getTime()));
  }

  @Override
  public void updateApplicationJob(ApplicationJob job) throws RegistryException {
    GFacJobDataResource gFacJob = validateAndGetGFacJob(job.getJobId());
    setupValues(job, gFacJob);
    gFacJob.save();
  }
View Full Code Here

      throw new InvalidApplicationJobIDException();
    }
    if (!isApplicationJobExists(jobId)){
      throw new ApplicationJobDoesNotExistsException(jobId);
    }
    GFacJobDataResource gFacJob = jpa.getWorker().getGFacJob(jobId);
    return gFacJob;
  }
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.