Examples of save()


Examples of org.apache.aiaravata.application.catalog.data.resources.GridftpEndpointResource.save()

                for (String endpoint : gridFTPEndPoint) {
                    GridftpEndpointResource endpointResource = new GridftpEndpointResource();
                    endpointResource.setDataMovementInterfaceId(resource.getDataMovementInterfaceId());
                    endpointResource.setEndpoint(endpoint);
                    endpointResource.setGridftpDataMovementResource(resource);
                    endpointResource.save();
                }
            }
            return resource.getDataMovementInterfaceId();
        }catch (Exception e){
            logger.error("Error while saving GridFTP Data Movement...", e);
View Full Code Here

Examples of org.apache.aiaravata.application.catalog.data.resources.HostAliasResource.save()

        for (String alias : hostAliases) {
            HostAliasResource aliasResource = new HostAliasResource();
            aliasResource.setComputeHostResource(computeHostResource);
            aliasResource.setResourceID(computeHostResource.getResourceId());
            aliasResource.setAlias(alias);
            aliasResource.save();
        }
    }
  }

    @Override
View Full Code Here

Examples of org.apache.aiaravata.application.catalog.data.resources.HostIPAddressResource.save()

        for (String ipAddress : ipAddresses) {
            HostIPAddressResource ipAddressResource = new HostIPAddressResource();
            ipAddressResource.setComputeHostResource(computeHostResource);
            ipAddressResource.setResourceID(computeHostResource.getResourceId());
            ipAddressResource.setIpaddress(ipAddress);
            ipAddressResource.save();
        }
    }
  }

  protected void saveHostAliases(ComputeResourceDescription description,
View Full Code Here

Examples of org.apache.aiaravata.application.catalog.data.resources.JobManagerCommandResource.save()

      for (JobManagerCommand commandType : jobManagerCommands.keySet()) {
        JobManagerCommandResource r = new JobManagerCommandResource();
        r.setCommandType(commandType.toString());
        r.setCommand(jobManagerCommands.get(commandType));
        r.setResourceJobManagerId(resource.getResourceJobManagerId());
        r.save();
      }
    }
    return resource.getResourceJobManagerId();
  }
View Full Code Here

Examples of org.apache.aiaravata.application.catalog.data.resources.JobSubmissionInterfaceResource.save()

          JobSubmissionInterfaceResource jsi = AppCatalogThriftConversion.getJobSubmissionInterface(jobSubmissionInterface);
          jsi.setComputeResourceId(computeResourceId);
          ComputeResourceResource computeResourceResource = new ComputeResourceResource();
          computeResourceResource=(ComputeResourceResource)computeResourceResource.get(computeResourceId);
          jsi.setComputeHostResource(computeResourceResource);
            jsi.save();
        }catch (Exception e){
            logger.error("Error while saving "+jobSubmissionInterface.getJobSubmissionProtocol().toString()+" Job Submission Protocol...", e);
            throw new AppCatalogException(e);
        }
    }
View Full Code Here

Examples of org.apache.aiaravata.application.catalog.data.resources.LocalDataMovementResource.save()

    @Override
    public boolean updateLocalDataMovementDetails(String jobSubmissionInterfaceId, LOCALDataMovement localDataMovement) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
      try {
            LocalDataMovementResource movment = AppCatalogThriftConversion.getLocalDataMovement(localDataMovement);
            movment.setDataMovementInterfaceId(jobSubmissionInterfaceId);
            movment.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

Examples of org.apache.aiaravata.application.catalog.data.resources.LocalSubmissionResource.save()

    @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

Examples of org.apache.aiaravata.application.catalog.data.resources.ResourceJobManagerResource.save()

    @Override
  public String addResourceJobManager(ResourceJobManager resourceJobManager)
      throws AppCatalogException {
    resourceJobManager.setResourceJobManagerId(AppCatalogUtils.getID("RJM"));
    ResourceJobManagerResource resource = AppCatalogThriftConversion.getResourceJobManager(resourceJobManager);
    resource.save();
    Map<JobManagerCommand, String> jobManagerCommands = resourceJobManager.getJobManagerCommands();
    if (jobManagerCommands!=null) {
      for (JobManagerCommand commandType : jobManagerCommands.keySet()) {
        JobManagerCommandResource r = new JobManagerCommandResource();
        r.setCommandType(commandType.toString());
View Full Code Here

Examples of org.apache.aiaravata.application.catalog.data.resources.ScpDataMovementResource.save()

    @Override
    public boolean updateSCPDataMovementDetails(String jobSubmissionInterfaceId, SCPDataMovement scpDataMovement) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
      try {
            ScpDataMovementResource movment = AppCatalogThriftConversion.getSCPDataMovementDescription(scpDataMovement);
            movment.setDataMovementInterfaceId(jobSubmissionInterfaceId);
            movment.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

Examples of org.apache.aiaravata.application.catalog.data.resources.SshJobSubmissionResource.save()

    @Override
    public boolean updateSSHJobSubmissionDetails(String jobSubmissionInterfaceId, SSHJobSubmission sshJobSubmission) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
      try {
            SshJobSubmissionResource submission = AppCatalogThriftConversion.getSSHJobSubmission(sshJobSubmission);
            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
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.