Package org.apache.aiaravata.application.catalog.data.resources

Examples of org.apache.aiaravata.application.catalog.data.resources.LocalSubmissionResource


     * Returns a success/failure of the deletion.
     */
    @Override
    public boolean updateLocalSubmissionDetails(String jobSubmissionInterfaceId, LOCALSubmission localSubmission) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
      try {
            LocalSubmissionResource submission = AppCatalogThriftConversion.getLocalJobSubmission(localSubmission);
            submission.setJobSubmissionInterfaceId(jobSubmissionInterfaceId);
            submission.save();
            return true;
        } catch (AppCatalogException e) {
            logger.error("Error while adding job submission interface to resource compute resource...", e);
            AiravataSystemException exception = new AiravataSystemException();
            exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
View Full Code Here


        }
    return localDataMovementResource;
  }
 
    private static Resource createLocalSubmission(LocalSubmission o) {
    LocalSubmissionResource localSubmissionResource = new LocalSubmissionResource();
        if (o != null){
            localSubmissionResource.setResourceJobManagerId(o.getResourceJobManagerId());
            localSubmissionResource.setResourceJobManagerResource((ResourceJobManagerResource)createResourceJobManager(o.getResourceJobManager()));
            localSubmissionResource.setJobSubmissionInterfaceId(o.getJobSubmissionInterfaceId());
        }
    return localSubmissionResource;
  }
View Full Code Here

  @Override
  public String addLocalJobSubmission(LOCALSubmission localSubmission)
      throws AppCatalogException {
    localSubmission.setJobSubmissionInterfaceId(AppCatalogUtils.getID("LOCAL"));
    String resourceJobManagerId = addResourceJobManager(localSubmission.getResourceJobManager());
    LocalSubmissionResource localJobSubmission = AppCatalogThriftConversion.getLocalJobSubmission(localSubmission);
    localJobSubmission.setResourceJobManagerId(resourceJobManagerId);
    localJobSubmission.getResourceJobManagerResource().setResourceJobManagerId(resourceJobManagerId);
      localJobSubmission.save();
      return localJobSubmission.getJobSubmissionInterfaceId();
  }
View Full Code Here

  }

  @Override
  public LOCALSubmission getLocalJobSubmission(String submissionId)
      throws AppCatalogException {
    LocalSubmissionResource localSubmissionResource = new LocalSubmissionResource();
    localSubmissionResource= (LocalSubmissionResource)localSubmissionResource.get(submissionId);
    return AppCatalogThriftConversion.getLocalJobSubmission(localSubmissionResource);
  }
View Full Code Here

TOP

Related Classes of org.apache.aiaravata.application.catalog.data.resources.LocalSubmissionResource

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.